PF_API 0.52
Public Member Functions | Public Attributes

OpenSkyNet::CD::Box Struct Reference

#include <CDVolume.h>

Inheritance diagram for OpenSkyNet::CD::Box:
OpenSkyNet::CD::Shape OpenSkyNet::CD::Shape

List of all members.

Public Member Functions

 Box (const float &boundingRadius_, const float &width_, const float &height_, const float &depth_)
virtual SHAPE_TYPE getType () const
Math::Point getDimensions () const
virtual float getDist (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_) const
virtual bool getFirstIntersection (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Math::Point<> &thisVel_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_, const Math::Point<> &otherVel_, HitInfo &hitInfo_) const
virtual void scale (const Math::Point<> &factor_)
 Box (const float &boundingRadius_, const float &width_, const float &height_, const float &depth_)
virtual SHAPE_TYPE getType () const
Math::Point getDimensions () const
virtual float getDist (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_) const
virtual bool getFirstIntersection (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Math::Point<> &thisVel_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_, const Math::Point<> &otherVel_, HitInfo &hitInfo_) const
virtual void scale (const Math::Point<> &factor_)

Public Attributes

float _widthDiv2
float _heightDiv2
float _depthDiv2

Constructor & Destructor Documentation

OpenSkyNet::CD::Box::Box ( const float &  boundingRadius_,
const float &  width_,
const float &  height_,
const float &  depth_ 
) [inline]
OpenSkyNet::CD::Box::Box ( const float &  boundingRadius_,
const float &  width_,
const float &  height_,
const float &  depth_ 
) [inline]

Member Function Documentation

Math::Point OpenSkyNet::CD::Box::getDimensions ( ) const [inline]
Math::Point OpenSkyNet::CD::Box::getDimensions ( ) const [inline]
virtual float OpenSkyNet::CD::Box::getDist ( const Math::Point<> &  thisCenter_,
const Math::Matrix3x3 thisRot_,
const Shape otherShape_,
const Math::Point<> &  otherCenter_,
const Math::Matrix3x3 otherRot_ 
) const [virtual]

NOTE: This method assumes all rotations for boxes are identity matrices (so are axis-aligned boxes).

Reimplemented from OpenSkyNet::CD::Shape.

virtual float OpenSkyNet::CD::Box::getDist ( const Math::Point<> &  thisCenter_,
const Math::Matrix3x3 thisRot_,
const Shape otherShape_,
const Math::Point<> &  otherCenter_,
const Math::Matrix3x3 otherRot_ 
) const [virtual]

NOTE: This method assumes all rotations for boxes are identity matrices (so are axis-aligned boxes).

Reimplemented from OpenSkyNet::CD::Shape.

virtual bool OpenSkyNet::CD::Box::getFirstIntersection ( const Math::Point<> &  thisCenter_,
const Math::Matrix3x3 thisRot_,
const Math::Point<> &  thisVel_,
const Shape otherShape_,
const Math::Point<> &  otherCenter_,
const Math::Matrix3x3 otherRot_,
const Math::Point<> &  otherVel_,
HitInfo hitInfo_ 
) const [virtual]

Reimplemented from OpenSkyNet::CD::Shape.

virtual bool OpenSkyNet::CD::Box::getFirstIntersection ( const Math::Point<> &  thisCenter_,
const Math::Matrix3x3 thisRot_,
const Math::Point<> &  thisVel_,
const Shape otherShape_,
const Math::Point<> &  otherCenter_,
const Math::Matrix3x3 otherRot_,
const Math::Point<> &  otherVel_,
HitInfo hitInfo_ 
) const [virtual]

Reimplemented from OpenSkyNet::CD::Shape.

virtual SHAPE_TYPE OpenSkyNet::CD::Box::getType ( ) const [inline, virtual]

Implements OpenSkyNet::CD::Shape.

virtual SHAPE_TYPE OpenSkyNet::CD::Box::getType ( ) const [inline, virtual]

Implements OpenSkyNet::CD::Shape.

virtual void OpenSkyNet::CD::Box::scale ( const Math::Point<> &  factor_) [virtual]

Reimplemented from OpenSkyNet::CD::Shape.

virtual void OpenSkyNet::CD::Box::scale ( const Math::Point<> &  factor_) [virtual]

Reimplemented from OpenSkyNet::CD::Shape.


Member Data Documentation


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines