PF_API 0.52
Public Types | Public Member Functions | Public Attributes

OpenSkyNet::CD::Plane Struct Reference

#include <CDVolume.h>

Inheritance diagram for OpenSkyNet::CD::Plane:
OpenSkyNet::CD::Shape OpenSkyNet::CD::Shape

List of all members.

Public Types

enum  AXIS_ALIGNMENT {
  NONE, NEG_X, POS_X, NEG_Y,
  POS_Y, NEG_Z, POS_Z, NONE,
  NEG_X, POS_X, NEG_Y, POS_Y,
  NEG_Z, POS_Z
}
enum  AXIS_ALIGNMENT {
  NONE, NEG_X, POS_X, NEG_Y,
  POS_Y, NEG_Z, POS_Z, NONE,
  NEG_X, POS_X, NEG_Y, POS_Y,
  NEG_Z, POS_Z
}

Public Member Functions

 Plane (const Math::Point<> &n_)
virtual SHAPE_TYPE getType () const
virtual float getDist (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_) const
float getDist (const Math::Point<> &thisP_, const Math::Point<> &otherP_) const
AXIS_ALIGNMENT getAxisAlignment () const
 Plane (const Math::Point<> &n_)
virtual SHAPE_TYPE getType () const
virtual float getDist (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_) const
float getDist (const Math::Point<> &thisP_, const Math::Point<> &otherP_) const
AXIS_ALIGNMENT getAxisAlignment () const

Public Attributes

Math::Point _n

Member Enumeration Documentation

Enumerator:
NONE 
NEG_X 
POS_X 
NEG_Y 
POS_Y 
NEG_Z 
POS_Z 
NONE 
NEG_X 
POS_X 
NEG_Y 
POS_Y 
NEG_Z 
POS_Z 
Enumerator:
NONE 
NEG_X 
POS_X 
NEG_Y 
POS_Y 
NEG_Z 
POS_Z 
NONE 
NEG_X 
POS_X 
NEG_Y 
POS_Y 
NEG_Z 
POS_Z 

Constructor & Destructor Documentation

OpenSkyNet::CD::Plane::Plane ( const Math::Point<> &  n_) [inline]
OpenSkyNet::CD::Plane::Plane ( const Math::Point<> &  n_) [inline]

Member Function Documentation

AXIS_ALIGNMENT OpenSkyNet::CD::Plane::getAxisAlignment ( ) const [inline]
AXIS_ALIGNMENT OpenSkyNet::CD::Plane::getAxisAlignment ( ) const [inline]
float OpenSkyNet::CD::Plane::getDist ( const Math::Point<> &  thisP_,
const Math::Point<> &  otherP_ 
) const [inline]
virtual float OpenSkyNet::CD::Plane::getDist ( const Math::Point<> &  thisCenter_,
const Math::Matrix3x3 thisRot_,
const Shape otherShape_,
const Math::Point<> &  otherCenter_,
const Math::Matrix3x3 otherRot_ 
) const [virtual]

NOTE: If any part of the other shape lies on the side opposite the plane's normal, then this method returns the farthest negative dist. 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::Plane::getDist ( const Math::Point<> &  thisCenter_,
const Math::Matrix3x3 thisRot_,
const Shape otherShape_,
const Math::Point<> &  otherCenter_,
const Math::Matrix3x3 otherRot_ 
) const [virtual]

NOTE: If any part of the other shape lies on the side opposite the plane's normal, then this method returns the farthest negative dist. NOTE: This method assumes all rotations for boxes are identity matrices (so are axis-aligned boxes).

Reimplemented from OpenSkyNet::CD::Shape.

float OpenSkyNet::CD::Plane::getDist ( const Math::Point<> &  thisP_,
const Math::Point<> &  otherP_ 
) const [inline]
virtual SHAPE_TYPE OpenSkyNet::CD::Plane::getType ( ) const [inline, virtual]

Implements OpenSkyNet::CD::Shape.

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

Implements 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