X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fgoat3d%2Fsrc%2Faabox.h;fp=libs%2Fgoat3d%2Fsrc%2Faabox.h;h=d9cb818796ed6b6a59a568097a7df68e7dd5aa4d;hb=d5f45e3128c537f272615cf76242e1dfebccdee7;hp=0000000000000000000000000000000000000000;hpb=dd7ce87b0ad2b8a1b4758bcc9354e993b71c8599;p=raydungeon diff --git a/libs/goat3d/src/aabox.h b/libs/goat3d/src/aabox.h new file mode 100644 index 0000000..d9cb818 --- /dev/null +++ b/libs/goat3d/src/aabox.h @@ -0,0 +1,36 @@ +/* +goat3d - 3D scene, and animation file format library. +Copyright (C) 2013-2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see . +*/ +#ifndef AABOX_H_ +#define AABOX_H_ + +#include "cgmath/cgmath.h" + +struct aabox { + cgm_vec3 bmin, bmax; +}; + +void g3dimpl_aabox_init(struct aabox *box); +void g3dimpl_aabox_cons(struct aabox *box, float x0, float y0, float z0, + float x1, float y1, float z1); + +int g3dimpl_aabox_equal(const struct aabox *a, const struct aabox *b); + +void g3dimpl_aabox_union(struct aabox *res, const struct aabox *a, + const struct aabox *b); + +#endif /* AABOX_H_ */