Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
AABoxClass Class Reference

#include <aabox.h>

Public Member Functions

WWINLINE AABoxClass (void)
 
WWINLINE AABoxClass (const Vector3 &center, const Vector3 &extent)
 
 AABoxClass (const MinMaxAABoxClass &minmaxbox)
 
 AABoxClass (Vector3 *points, int num)
 
bool operator== (const AABoxClass &src)
 
bool operator!= (const AABoxClass &src)
 
WWINLINE void Init (const Vector3 &center, const Vector3 &extent)
 
WWINLINE void Init (Vector3 *points, int num)
 
WWINLINE void Init (const MinMaxAABoxClass &minmaxbox)
 
void Init (const LineSegClass &line)
 
void Init_Min_Max (const Vector3 &min, const Vector3 &max)
 
void Init_Random (float min_center=-1.0f, float max_center=1.0f, float min_extent=0.5f, float max_extent=1.0f)
 
void Add_Point (const Vector3 &point)
 
void Add_Box (const AABoxClass &b)
 
void Add_Box (const MinMaxAABoxClass &b)
 
float Project_To_Axis (const Vector3 &axis) const
 
void Transform (const Matrix3D &tm)
 
void Translate (const Vector3 &pos)
 
WWINLINE float Volume (void) const
 
WWINLINE bool Contains (const Vector3 &point) const
 
WWINLINE bool Contains (const AABoxClass &other_box) const
 
WWINLINE bool Contains (const MinMaxAABoxClass &other_box) const
 

Static Public Member Functions

static void Transform (const Matrix3D &tm, const AABoxClass &in, AABoxClass *out)
 

Public Attributes

Vector3 Center
 
Vector3 Extent
 

Detailed Description

Definition at line 82 of file aabox.h.

Constructor & Destructor Documentation

◆ AABoxClass() [1/4]

WWINLINE AABoxClass::AABoxClass ( void )
inline

Definition at line 87 of file aabox.h.

◆ AABoxClass() [2/4]

WWINLINE AABoxClass::AABoxClass ( const Vector3 & center,
const Vector3 & extent )
inline

Definition at line 89 of file aabox.h.

◆ AABoxClass() [3/4]

AABoxClass::AABoxClass ( const MinMaxAABoxClass & minmaxbox)
inline

Definition at line 94 of file aabox.h.

◆ AABoxClass() [4/4]

AABoxClass::AABoxClass ( Vector3 * points,
int num )
inline

Definition at line 96 of file aabox.h.

Member Function Documentation

◆ Add_Box() [1/2]

WWINLINE void AABoxClass::Add_Box ( const AABoxClass & b)

Definition at line 389 of file aabox.h.

◆ Add_Box() [2/2]

WWINLINE void AABoxClass::Add_Box ( const MinMaxAABoxClass & b)

Definition at line 414 of file aabox.h.

◆ Add_Point()

WWINLINE void AABoxClass::Add_Point ( const Vector3 & point)

Definition at line 358 of file aabox.h.

◆ Contains() [1/3]

WWINLINE bool AABoxClass::Contains ( const AABoxClass & other_box) const

Definition at line 459 of file aabox.h.

◆ Contains() [2/3]

WWINLINE bool AABoxClass::Contains ( const MinMaxAABoxClass & other_box) const

Definition at line 476 of file aabox.h.

◆ Contains() [3/3]

WWINLINE bool AABoxClass::Contains ( const Vector3 & point) const

Definition at line 504 of file aabox.h.

◆ Init() [1/4]

WWINLINE void AABoxClass::Init ( const LineSegClass & line)

Definition at line 310 of file aabox.h.

◆ Init() [2/4]

WWINLINE void AABoxClass::Init ( const MinMaxAABoxClass & minmaxbox)

Definition at line 291 of file aabox.h.

◆ Init() [3/4]

WWINLINE void AABoxClass::Init ( const Vector3 & center,
const Vector3 & extent )
inline

Definition at line 101 of file aabox.h.

◆ Init() [4/4]

WWINLINE void AABoxClass::Init ( Vector3 * points,
int num )

Definition at line 259 of file aabox.h.

◆ Init_Min_Max()

WWINLINE void AABoxClass::Init_Min_Max ( const Vector3 & min,
const Vector3 & max )

Definition at line 339 of file aabox.h.

◆ Init_Random()

void AABoxClass::Init_Random ( float min_center = -1.0f,
float max_center = 1.0f,
float min_extent = 0.5f,
float max_extent = 1.0f )

Definition at line 58 of file aabox.cpp.

◆ operator!=()

WWINLINE bool AABoxClass::operator!= ( const AABoxClass & src)

Definition at line 241 of file aabox.h.

◆ operator==()

WWINLINE bool AABoxClass::operator== ( const AABoxClass & src)

Definition at line 223 of file aabox.h.

◆ Project_To_Axis()

WWINLINE float AABoxClass::Project_To_Axis ( const Vector3 & axis) const

Definition at line 437 of file aabox.h.

◆ Transform() [1/2]

WWINLINE void AABoxClass::Transform ( const Matrix3D & tm)

Definition at line 185 of file aabox.h.

◆ Transform() [2/2]

void AABoxClass::Transform ( const Matrix3D & tm,
const AABoxClass & in,
AABoxClass * out )
static

Definition at line 70 of file aabox.cpp.

◆ Translate()

WWINLINE void AABoxClass::Translate ( const Vector3 & pos)

Definition at line 205 of file aabox.h.

◆ Volume()

WWINLINE float AABoxClass::Volume ( void ) const
inline

Definition at line 116 of file aabox.h.

Member Data Documentation

◆ Center

Vector3 AABoxClass::Center

Definition at line 123 of file aabox.h.

◆ Extent

Vector3 AABoxClass::Extent

Definition at line 124 of file aabox.h.


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