Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Opcode::CollisionAABB Class Reference

#include <Opcode.h>

Public Member Functions

inline_ CollisionAABB ()
 Constructor. More...
 
inline_ CollisionAABB (const AABB &b)
 Constructor. More...
 
inline_ ~CollisionAABB ()
 Destructor. More...
 
inline_ void GetMin (Point &min) const
 Get min point of the box. More...
 
inline_ void GetMax (Point &max) const
 Get max point of the box. More...
 
inline_ float GetMin (udword axis) const
 Get component of the box's min point along a given axis. More...
 
inline_ float GetMax (udword axis) const
 Get component of the box's max point along a given axis. More...
 
inline_ void SetMinMax (const Point &min, const Point &max)
 
inline_ BOOL IsInside (const CollisionAABB &box) const
 

Public Attributes

Point mCenter
 Box center. More...
 
Point mExtents
 Box extents. More...
 

Detailed Description

Definition at line 31 of file Opcode.h.

Constructor & Destructor Documentation

inline_ Opcode::CollisionAABB::CollisionAABB ( )
inline

Constructor.

Definition at line 35 of file Opcode.h.

39 {
inline_ Opcode::CollisionAABB::CollisionAABB ( const AABB b)
inline

Constructor.

Definition at line 37 of file Opcode.h.

39 {
inline_ Opcode::CollisionAABB::~CollisionAABB ( )
inline

Destructor.

Definition at line 39 of file Opcode.h.

39 {

Member Function Documentation

inline_ void Opcode::CollisionAABB::GetMax ( Point max) const
inline

Get max point of the box.

Definition at line 44 of file Opcode.h.

inline_ float Opcode::CollisionAABB::GetMax ( udword  axis) const
inline

Get component of the box's max point along a given axis.

Definition at line 49 of file Opcode.h.

inline_ void Opcode::CollisionAABB::GetMin ( Point min) const
inline

Get min point of the box.

Definition at line 42 of file Opcode.h.

inline_ float Opcode::CollisionAABB::GetMin ( udword  axis) const
inline

Get component of the box's min point along a given axis.

Definition at line 47 of file Opcode.h.

inline_ BOOL Opcode::CollisionAABB::IsInside ( const CollisionAABB box) const
inline

Checks a box is inside another box.

Parameters
box[in] the other box
Returns
true if current box is inside input box

Definition at line 67 of file Opcode.h.

inline_ void Opcode::CollisionAABB::SetMinMax ( const Point min,
const Point max 
)
inline

Setups an AABB from min & max vectors.

Parameters
min[in] the min point
max[in] the max point

Definition at line 58 of file Opcode.h.

Member Data Documentation

Point Opcode::CollisionAABB::mCenter

Box center.

Definition at line 78 of file Opcode.h.

Point Opcode::CollisionAABB::mExtents

Box extents.

Definition at line 79 of file Opcode.h.


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