Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
OpenSkyNet::CD::Plane Struct Reference

#include <CDVolume.h>

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

Public Types

enum  AXIS_ALIGNMENT {
  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
 
- Public Member Functions inherited from OpenSkyNet::CD::Shape
 Shape (const float &boundingRadius_=0.0f)
 
virtual ~Shape ()
 
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 bool getClosestRayIntersection (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Math::Point<> &rayOrigin_, const Math::Point<> &rayDir_, Math::Point<> &hitPos_, float &t_, Math::Point<> &hitNormal_) const
 
virtual void scale (const Math::Point<> &factor_)
 

Public Attributes

Math::Point _n
 
- Public Attributes inherited from OpenSkyNet::CD::Shape
float _boundingRadius
 

Member Enumeration Documentation

Enumerator
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

Member Function Documentation

AXIS_ALIGNMENT OpenSkyNet::CD::Plane::getAxisAlignment ( ) 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.

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

Implements OpenSkyNet::CD::Shape.

Member Data Documentation

Math::Point OpenSkyNet::CD::Plane::_n

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