#include <Geometry.h>
Public Member Functions | |
BOUNDINGBOX () | |
void | Clear () |
void | AddPoint (const VECTOR &) |
void | AddBox (const BOUNDINGBOX &) |
BOOLEAN | DoesIntersect (const BOUNDINGBOX &) |
void | Intersect (const BOUNDINGBOX &) |
Public Attributes | |
BOOLEAN | Empty |
VECTOR | Min |
VECTOR | Max |
Friends | |
INTERVALL | Intersection (const RAY &, const BOUNDINGBOX &) |
Definition at line 44 of file Geometry.h.
BOUNDINGBOX::BOUNDINGBOX | ( | ) |
void BOUNDINGBOX::AddBox | ( | const BOUNDINGBOX & | ) |
Definition at line 130 of file Geometry.cpp.
References AddPoint(), and b.
Referenced by SIM3DGroup::AddObject(), SIM3DGroup::MakeNewBoundingBox(), SIM3DGroup::RegisterAdd(), and SIM3DGroup::RegisterBoundingBox().
void BOUNDINGBOX::AddPoint | ( | const VECTOR & | ) |
Definition at line 117 of file Geometry.cpp.
References Empty, FALSE, max, Max, min, Min, VECTOR::x, VECTOR::y, and VECTOR::z.
Referenced by AddBox(), SIM3DPolyeder::GetBoundingBoxOfFace(), and SIM3DPolyeder::MakeNewBoundingBox().
void BOUNDINGBOX::Clear | ( | ) |
Definition at line 112 of file Geometry.cpp.
Referenced by SIM3DPolyeder::MakeNewBoundingBox(), SIM3DGroup::MakeNewBoundingBox(), SIM3DGroup::RegisterAdd(), and SIM3DGroup::RegisterBoundingBox().
BOOLEAN BOUNDINGBOX::DoesIntersect | ( | const BOUNDINGBOX & | ) |
Definition at line 156 of file Geometry.cpp.
References b, Empty, and Intersect().
Referenced by SIM3DGroup::DoesIntersect().
void BOUNDINGBOX::Intersect | ( | const BOUNDINGBOX & | ) |
Definition at line 136 of file Geometry.cpp.
References b, INTERVALL::Empty, Empty, INTERVALL::Intersect(), INTERVALL::Max, Max, INTERVALL::Min, Min, TRUE, VECTOR::x, VECTOR::y, and VECTOR::z.
Referenced by DoesIntersect().
INTERVALL Intersection | ( | const RAY & | , | |
const BOUNDINGBOX & | ||||
) | [friend] |
Definition at line 39 of file Geometry.cpp.
Definition at line 47 of file Geometry.h.
Referenced by AddPoint(), BOUNDINGBOX(), Clear(), DoesIntersect(), and Intersect().