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

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

DtPlane class.

Inheritance diagram for makVrv::DtPlane< T >:
Inheritance graph
[legend]

Public Member Functions

 DtPlane ()
 
virtual ~DtPlane ()
 
PlaneSide getSide (const DtAxisAlignedBoundingBox< T > &box) const
 
PlaneSide getSide (const DtVector3< T > &centre, const DtVector3< T > &halfSize) const
 
getDistance (const DtVector3< T > &rhs) const
 

Public Attributes

DtVector3< T > vNormal
 
d
 

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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)