Go to the source code of this file.
Classes | |
class | AABB |
Defines | |
#define | AABB_COMMON_METHODS |
Declarations of type-independent methods (most of them implemented in the .cpp) | |
#define | AABB_COMMON_METHODS |
Enumerations | |
enum | AABBType { AABB_RENDER = 0, AABB_UPDATE = 1, AABB_FORCE_DWORD = 0x7fffffff } |
Functions | |
inline_ void | ComputeAABB (AABB &aabb, const Point *list, udword nb_pts) |
inline_ void | ComputeMinMax (const Point &p, Point &min, Point &max) |
Contains AABB-related code. (axis-aligned bounding box)
Definition in file IceAABB.h.
#define AABB_COMMON_METHODS |
AABB& Add(const AABB& aabb); \ float MakeCube(AABB& cube) const; \ void MakeSphere(Sphere& sphere) const; \ const sbyte* ComputeOutline(const Point& local_eye, sdword& num) const; \ float ComputeBoxArea(const Point& eye, const Matrix4x4& mat, float width, float height, sdword& num) const; \ bool IsInside(const AABB& box) const; \ bool ComputePlanes(Plane* planes) const; \ bool ComputePoints(Point* pts) const; \ const Point* GetVertexNormals() const; \ const udword* GetEdges() const; \ const Point* GetEdgeNormals() const; \ inline_ BOOL ContainsPoint(const Point& p) const \ { \ if(p.x > GetMax(0) || p.x < GetMin(0)) return FALSE; \ if(p.y > GetMax(1) || p.y < GetMin(1)) return FALSE; \ if(p.z > GetMax(2) || p.z < GetMin(2)) return FALSE; \ return TRUE; \ }
Declarations of type-independent methods (most of them implemented in the .cpp)
Definition at line 20 of file OPC_IceHook.h.
#define AABB_COMMON_METHODS |
AABB& Add(const AABB& aabb); \ float MakeCube(AABB& cube) const; \ void MakeSphere(Sphere& sphere) const; \ const sbyte* ComputeOutline(const Point& local_eye, sdword& num) const; \ float ComputeBoxArea(const Point& eye, const Matrix4x4& mat, float width, float height, sdword& num) const; \ bool IsInside(const AABB& box) const; \ bool ComputePlanes(Plane* planes) const; \ bool ComputePoints(Point* pts) const; \ const Point* GetVertexNormals() const; \ const udword* GetEdges() const; \ const Point* GetEdgeNormals() const; \ inline_ BOOL ContainsPoint(const Point& p) const \ { \ if(p.x > GetMax(0) || p.x < GetMin(0)) return FALSE; \ if(p.y > GetMax(1) || p.y < GetMin(1)) return FALSE; \ if(p.z > GetMax(2) || p.z < GetMin(2)) return FALSE; \ return TRUE; \ }
enum AABBType |