doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
idBounds Class Reference

#include <Bounds.h>

Public Member Functions

 idBounds (void)
 
 idBounds (const idVec3 &mins, const idVec3 &maxs)
 
 idBounds (const idVec3 &point)
 
const idVec3operator[] (const int index) const
 
idVec3operator[] (const int index)
 
idBounds operator+ (const idVec3 &t) const
 
idBoundsoperator+= (const idVec3 &t)
 
idBounds operator* (const idMat3 &r) const
 
idBoundsoperator*= (const idMat3 &r)
 
idBounds operator+ (const idBounds &a) const
 
idBoundsoperator+= (const idBounds &a)
 
idBounds operator- (const idBounds &a) const
 
idBoundsoperator-= (const idBounds &a)
 
bool Compare (const idBounds &a) const
 
bool Compare (const idBounds &a, const float epsilon) const
 
bool operator== (const idBounds &a) const
 
bool operator!= (const idBounds &a) const
 
void Clear (void)
 
void Zero (void)
 
idVec3 GetCenter (void) const
 
float GetRadius (void) const
 
float GetRadius (const idVec3 &center) const
 
float GetVolume (void) const
 
bool IsCleared (void) const
 
bool AddPoint (const idVec3 &v)
 
bool AddBounds (const idBounds &a)
 
idBounds Intersect (const idBounds &a) const
 
idBoundsIntersectSelf (const idBounds &a)
 
idBounds Expand (const float d) const
 
idBoundsExpandSelf (const float d)
 
idBounds Translate (const idVec3 &translation) const
 
idBoundsTranslateSelf (const idVec3 &translation)
 
idBounds Rotate (const idMat3 &rotation) const
 
idBoundsRotateSelf (const idMat3 &rotation)
 
float PlaneDistance (const idPlane &plane) const
 
int PlaneSide (const idPlane &plane, const float epsilon=ON_EPSILON) const
 
bool ContainsPoint (const idVec3 &p) const
 
bool IntersectsBounds (const idBounds &a) const
 
bool LineIntersection (const idVec3 &start, const idVec3 &end) const
 
bool RayIntersection (const idVec3 &start, const idVec3 &dir, float &scale) const
 
void FromTransformedBounds (const idBounds &bounds, const idVec3 &origin, const idMat3 &axis)
 
void FromPoints (const idVec3 *points, const int numPoints)
 
void FromPointTranslation (const idVec3 &point, const idVec3 &translation)
 
void FromBoundsTranslation (const idBounds &bounds, const idVec3 &origin, const idMat3 &axis, const idVec3 &translation)
 
void FromPointRotation (const idVec3 &point, const idRotation &rotation)
 
void FromBoundsRotation (const idBounds &bounds, const idVec3 &origin, const idMat3 &axis, const idRotation &rotation)
 
void ToPoints (idVec3 points[8]) const
 
idSphere ToSphere (void) const
 
void AxisProjection (const idVec3 &dir, float &min, float &max) const
 
void AxisProjection (const idVec3 &origin, const idMat3 &axis, const idVec3 &dir, float &min, float &max) const
 

Private Attributes

idVec3 b [2]
 

Detailed Description

Definition at line 40 of file Bounds.h.

Constructor & Destructor Documentation

ID_INLINE idBounds::idBounds ( void  )

Definition at line 114 of file Bounds.h.

ID_INLINE idBounds::idBounds ( const idVec3 mins,
const idVec3 maxs 
)
explicit

Definition at line 117 of file Bounds.h.

ID_INLINE idBounds::idBounds ( const idVec3 point)
explicit

Definition at line 122 of file Bounds.h.

Member Function Documentation

ID_INLINE bool idBounds::AddBounds ( const idBounds a)

Definition at line 255 of file Bounds.h.

ID_INLINE bool idBounds::AddPoint ( const idVec3 v)

Definition at line 226 of file Bounds.h.

ID_INLINE void idBounds::AxisProjection ( const idVec3 dir,
float min,
float max 
) const

Definition at line 376 of file Bounds.h.

ID_INLINE void idBounds::AxisProjection ( const idVec3 origin,
const idMat3 axis,
const idVec3 dir,
float min,
float max 
) const

Definition at line 392 of file Bounds.h.

ID_INLINE void idBounds::Clear ( void  )

Definition at line 201 of file Bounds.h.

ID_INLINE bool idBounds::Compare ( const idBounds a) const

Definition at line 185 of file Bounds.h.

ID_INLINE bool idBounds::Compare ( const idBounds a,
const float  epsilon 
) const

Definition at line 189 of file Bounds.h.

ID_INLINE bool idBounds::ContainsPoint ( const idVec3 p) const

Definition at line 353 of file Bounds.h.

ID_INLINE idBounds idBounds::Expand ( const float  d) const

Definition at line 317 of file Bounds.h.

ID_INLINE idBounds & idBounds::ExpandSelf ( const float  d)

Definition at line 322 of file Bounds.h.

void idBounds::FromBoundsRotation ( const idBounds bounds,
const idVec3 origin,
const idMat3 axis,
const idRotation rotation 
)

Definition at line 386 of file Bounds.cpp.

void idBounds::FromBoundsTranslation ( const idBounds bounds,
const idVec3 origin,
const idMat3 axis,
const idVec3 translation 
)

Definition at line 290 of file Bounds.cpp.

void idBounds::FromPointRotation ( const idVec3 point,
const idRotation rotation 
)

Definition at line 363 of file Bounds.cpp.

void idBounds::FromPoints ( const idVec3 points,
const int  numPoints 
)

Definition at line 257 of file Bounds.cpp.

void idBounds::FromPointTranslation ( const idVec3 point,
const idVec3 translation 
)

Definition at line 268 of file Bounds.cpp.

void idBounds::FromTransformedBounds ( const idBounds bounds,
const idVec3 origin,
const idMat3 axis 
)

Definition at line 232 of file Bounds.cpp.

ID_INLINE idVec3 idBounds::GetCenter ( void  ) const

Definition at line 211 of file Bounds.h.

float idBounds::GetRadius ( void  ) const

Definition at line 39 of file Bounds.cpp.

float idBounds::GetRadius ( const idVec3 center) const

Definition at line 61 of file Bounds.cpp.

ID_INLINE float idBounds::GetVolume ( void  ) const

Definition at line 215 of file Bounds.h.

ID_INLINE idBounds idBounds::Intersect ( const idBounds a) const

Definition at line 284 of file Bounds.h.

ID_INLINE bool idBounds::IntersectsBounds ( const idBounds a) const

Definition at line 361 of file Bounds.h.

ID_INLINE idBounds & idBounds::IntersectSelf ( const idBounds a)

Definition at line 295 of file Bounds.h.

ID_INLINE bool idBounds::IsCleared ( void  ) const

Definition at line 222 of file Bounds.h.

bool idBounds::LineIntersection ( const idVec3 start,
const idVec3 end 
) const

Definition at line 135 of file Bounds.cpp.

ID_INLINE bool idBounds::operator!= ( const idBounds a) const

Definition at line 197 of file Bounds.h.

ID_INLINE idBounds idBounds::operator* ( const idMat3 r) const

Definition at line 145 of file Bounds.h.

ID_INLINE idBounds & idBounds::operator*= ( const idMat3 r)

Definition at line 151 of file Bounds.h.

ID_INLINE idBounds idBounds::operator+ ( const idVec3 t) const

Definition at line 135 of file Bounds.h.

ID_INLINE idBounds idBounds::operator+ ( const idBounds a) const

Definition at line 156 of file Bounds.h.

ID_INLINE idBounds & idBounds::operator+= ( const idVec3 t)

Definition at line 139 of file Bounds.h.

ID_INLINE idBounds & idBounds::operator+= ( const idBounds a)

Definition at line 163 of file Bounds.h.

ID_INLINE idBounds idBounds::operator- ( const idBounds a) const

Definition at line 168 of file Bounds.h.

ID_INLINE idBounds & idBounds::operator-= ( const idBounds a)

Definition at line 176 of file Bounds.h.

ID_INLINE bool idBounds::operator== ( const idBounds a) const

Definition at line 193 of file Bounds.h.

ID_INLINE const idVec3 & idBounds::operator[] ( const int  index) const

Definition at line 127 of file Bounds.h.

ID_INLINE idVec3 & idBounds::operator[] ( const int  index)

Definition at line 131 of file Bounds.h.

float idBounds::PlaneDistance ( const idPlane plane) const

Definition at line 83 of file Bounds.cpp.

int idBounds::PlaneSide ( const idPlane plane,
const float  epsilon = ON_EPSILON 
) const

Definition at line 108 of file Bounds.cpp.

bool idBounds::RayIntersection ( const idVec3 start,
const idVec3 dir,
float scale 
) const

Definition at line 184 of file Bounds.cpp.

ID_INLINE idBounds idBounds::Rotate ( const idMat3 rotation) const

Definition at line 342 of file Bounds.h.

ID_INLINE idBounds & idBounds::RotateSelf ( const idMat3 rotation)

Definition at line 348 of file Bounds.h.

void idBounds::ToPoints ( idVec3  points[8]) const

Definition at line 418 of file Bounds.cpp.

ID_INLINE idSphere idBounds::ToSphere ( void  ) const

Definition at line 369 of file Bounds.h.

ID_INLINE idBounds idBounds::Translate ( const idVec3 translation) const

Definition at line 332 of file Bounds.h.

ID_INLINE idBounds & idBounds::TranslateSelf ( const idVec3 translation)

Definition at line 336 of file Bounds.h.

ID_INLINE void idBounds::Zero ( void  )

Definition at line 206 of file Bounds.h.

Member Data Documentation

idVec3 idBounds::b[2]
private

Definition at line 109 of file Bounds.h.


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