VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtPlane< T > Class Template Reference

DtPlane class. More...

Public Member Functions

 DtPlane ()
 CTOR.
virtual ~DtPlane ()
 DTOR.
PlaneSide getSide (const DtAxisAlignedBoundingBox< T > &box) const
 Returns the side where the alignedBox is.
PlaneSide getSide (const DtVector3< T > &centre, const DtVector3< T > &halfSize) const
 Returns which side of the plane that the given box lies on.
getDistance (const DtVector3< T > &rhs) const
 This is a pseudodistance.

Public Attributes

DtVector3< T > vNormal
d

Detailed Description

template<class T>
class makVrv::DtPlane< T >

DtPlane class.

Constructor & Destructor Documentation

template<class T>
makVrv::DtPlane< T >::DtPlane ( )

CTOR.

template<class T>
virtual makVrv::DtPlane< T >::~DtPlane ( )
virtual

DTOR.

Member Function Documentation

template<class T>
PlaneSide makVrv::DtPlane< T >::getSide ( const DtAxisAlignedBoundingBox< T > &  box) const

Returns the side where the alignedBox is.

The flag BOTH_SIDE indicates an intersecting box. One corner ON the plane is sufficient to consider the box and the plane intersecting.

template<class T>
PlaneSide makVrv::DtPlane< T >::getSide ( const DtVector3< T > &  centre,
const DtVector3< T > &  halfSize 
) const

Returns which side of the plane that the given box lies on.

The box is defined as centre/half-size pairs for effectively. POSITIVE_SIDE if the box complete lies on the "positive side" of the plane, NEGATIVE_SIDE if the box complete lies on the "negative side" of the plane, and BOTH_SIDE if the box intersects the plane.

template<class T>
T makVrv::DtPlane< T >::getDistance ( const DtVector3< T > &  rhs) const

This is a pseudodistance.

The sign of the return value is positive if the point is on the positive side of the plane, negative if the point is on the negative side, and zero if the point is on the plane.

Member Data Documentation

template<class T>
DtVector3<T> makVrv::DtPlane< T >::vNormal
template<class T>
T makVrv::DtPlane< T >::d

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)