X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fgeom.h;h=0d8dd003658fa44c4cccbd32dda21586788a04b0;hp=f9b88e5514590d81b44ab603b2412bf3e05d7aed;hb=2f5ee2007d258d947f2efab3bf3460479fe34813;hpb=6ecd4ecfa020964e4250bf9322c1a26ac4073b76 diff --git a/src/geom.h b/src/geom.h index f9b88e5..0d8dd00 100644 --- a/src/geom.h +++ b/src/geom.h @@ -16,7 +16,17 @@ enum GeomObjectType { GOBJ_DISC }; +enum { + AABOX_PLANE_PX, + AABOX_PLANE_NX, + AABOX_PLANE_PY, + AABOX_PLANE_NY, + AABOX_PLANE_PZ, + AABOX_PLANE_NZ +}; + class GeomObject; +class Plane; struct HitPoint { float dist; // parametric distance along the ray @@ -76,6 +86,7 @@ public: virtual void invalidate(); virtual Vec3 get_corner(int idx) const; + virtual Plane get_plane(int pidx) const; virtual bool intersect(const Ray &ray, HitPoint *hit = 0) const; virtual bool contains(const Vec3 &pt) const;