AABB Class Reference

#include <quat.h>

Collaboration diagram for AABB:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void SetFromCorners (VERTEX c1, VERTEX c2)
bool IntersectRay (VERTEX orig, VERTEX d)
bool IntersectSegment (VERTEX orig, VERTEX d, float seglen)
bool IntersectAABB (AABB &other)
VERTEX GetPos ()
VERTEX GetSize ()
VERTEX GetCenter ()
void DebugPrint ()
void GetVerts (VERTEX *eightverts)

Private Member Functions

float fabs (float num)

Private Attributes

VERTEX pos
VERTEX center
VERTEX size

Detailed Description

Definition at line 142 of file quat.h.


Member Function Documentation

void AABB::DebugPrint  ) 
 

Definition at line 1242 of file quat.cpp.

References center, VERTEX::DebugPrint(), pos, and size.

float AABB::fabs float  num  )  [inline, private]
 

Definition at line 149 of file quat.h.

Referenced by IntersectSegment().

VERTEX AABB::GetCenter  )  [inline]
 

Definition at line 159 of file quat.h.

References center.

Referenced by OBJECTCOLLISION::CollideBranchModel(), and OBJECTS::DrawObject().

VERTEX AABB::GetPos  )  [inline]
 

Definition at line 157 of file quat.h.

References pos.

Referenced by IntersectAABB().

VERTEX AABB::GetSize  )  [inline]
 

Definition at line 158 of file quat.h.

References size.

Referenced by IntersectAABB().

void AABB::GetVerts VERTEX eightverts  ) 
 

Definition at line 1273 of file quat.cpp.

References pos, VERTEX::Set(), size, VERTEX::x, VERTEX::y, and VERTEX::z.

bool AABB::IntersectAABB AABB other  ) 
 

Definition at line 1252 of file quat.cpp.

References GetPos(), GetSize(), pos, size, VERTEX::x, VERTEX::y, and VERTEX::z.

bool AABB::IntersectRay VERTEX  orig,
VERTEX  d
 

Definition at line 1150 of file quat.cpp.

References center, VERTEX::cross(), VERTEX::flabs(), pos, size, VERTEX::x, VERTEX::y, and VERTEX::z.

Referenced by IntersectSegment().

bool AABB::IntersectSegment VERTEX  orig,
VERTEX  d,
float  seglen
 

Definition at line 1198 of file quat.cpp.

References center, VERTEX::cross(), fabs(), IntersectRay(), VERTEX::ScaleR(), size, VERTEX::x, VERTEX::y, and VERTEX::z.

void AABB::SetFromCorners VERTEX  c1,
VERTEX  c2
 

Definition at line 1114 of file quat.cpp.

References center, pos, VERTEX::ScaleR(), VERTEX::Set(), size, VERTEX::x, VERTEX::y, and VERTEX::z.


Member Data Documentation

VERTEX AABB::center [private]
 

Definition at line 146 of file quat.h.

Referenced by DebugPrint(), GetCenter(), IntersectRay(), IntersectSegment(), and SetFromCorners().

VERTEX AABB::pos [private]
 

Definition at line 145 of file quat.h.

Referenced by DebugPrint(), GetPos(), GetVerts(), IntersectAABB(), IntersectRay(), and SetFromCorners().

VERTEX AABB::size [private]
 

Definition at line 147 of file quat.h.

Referenced by DebugPrint(), GetSize(), GetVerts(), IntersectAABB(), IntersectRay(), IntersectSegment(), and SetFromCorners().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:11:42 2006 by  doxygen 1.4.6