Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::math::AABB Class Reference

#include <AABB.h>

Inheritance diagram for kge::math::AABB:
kge::math::Shape

Public Member Functions

 AABB ()
 Constructor.
 AABB (const gfx::Vertex3 &init)
 Constructor.
 AABB (const Vector &init)
 Constructor.
 AABB (const AABB &init)
 Constructor.
 ~AABB ()
 Destructor.
void AddInternalPoint (gfx::Vertex3 *point)
 Adds a point to bounding box.
void AddInternalPoint (Vector *point)
void AddInternalPoint (const Vector &point)
void AddAABB (const AABB *bb)
 Adds an internal AABB.
void AddY (float y)
 Only checks for Y.
bool IntersectRay (Ray *pRay)
 Returns true if the ray and box collide.
bool Inside (const math::Vector &point) const
 Returns true if point is inside the box.
bool Intersect (const AABB &box) const
 Returns true if two boxes are intersecting.
void Repair ()
 Checks for swap min and max.
void DebugRender ()
void Reset ()
 resets the bounding box
void ResetY ()
int getType () const
Vector GetCenter ()
void UpdateLines ()
void CreateIndices ()
- Public Member Functions inherited from kge::math::Shape
 Shape ()
 Constructor.
virtual ~Shape ()
 Distructor.

Public Attributes

Vector m_vMin
 Min and max vectors.
Vector m_vMax
bool m_bFirst
gfx::Vertex3C v [8]
u16 i [24]

Protected Attributes

int m_iType

Detailed Description

Definition at line 19 of file AABB.h.

Constructor & Destructor Documentation

kge::math::AABB::AABB ( )

Constructor.

kge::math::AABB::AABB ( const gfx::Vertex3 init)

Constructor.

kge::math::AABB::AABB ( const Vector init)

Constructor.

kge::math::AABB::AABB ( const AABB init)

Constructor.

kge::math::AABB::~AABB ( )

Destructor.

Member Function Documentation

void kge::math::AABB::AddAABB ( const AABB bb)

Adds an internal AABB.

void kge::math::AABB::AddInternalPoint ( gfx::Vertex3 point)

Adds a point to bounding box.

void kge::math::AABB::AddInternalPoint ( Vector point)
void kge::math::AABB::AddInternalPoint ( const Vector point)
void kge::math::AABB::AddY ( float  y)

Only checks for Y.

void kge::math::AABB::CreateIndices ( )
void kge::math::AABB::DebugRender ( )
Vector kge::math::AABB::GetCenter ( )
int kge::math::AABB::getType ( void  ) const
inlinevirtual

Implements kge::math::Shape.

Definition at line 68 of file AABB.h.

bool kge::math::AABB::Inside ( const math::Vector point) const

Returns true if point is inside the box.

bool kge::math::AABB::Intersect ( const AABB box) const

Returns true if two boxes are intersecting.

bool kge::math::AABB::IntersectRay ( Ray pRay)
inline

Returns true if the ray and box collide.

void kge::math::AABB::Repair ( )

Checks for swap min and max.

void kge::math::AABB::Reset ( )

resets the bounding box

void kge::math::AABB::ResetY ( )
void kge::math::AABB::UpdateLines ( )

Member Data Documentation

u16 kge::math::AABB::i[24]

Definition at line 85 of file AABB.h.

bool kge::math::AABB::m_bFirst

Definition at line 82 of file AABB.h.

int kge::math::AABB::m_iType
protected

Definition at line 88 of file AABB.h.

Vector kge::math::AABB::m_vMax

Definition at line 79 of file AABB.h.

Vector kge::math::AABB::m_vMin

Min and max vectors.

Definition at line 79 of file AABB.h.

gfx::Vertex3C kge::math::AABB::v[8]

Definition at line 84 of file AABB.h.


The documentation for this class was generated from the following file: