VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Public Attributes
makVrv::DtPoint Class Reference

A 2D point. More...

Public Member Functions

 DtPoint (float x=0.0f, float y=0.0f)
 Constructor takes the x & y values,.
DtPointoperator+= (const DtPoint &p2)
 Increment this point by another.
DtPointoperator-= (const DtPoint &p2)
 Decrement this point by another.
bool operator== (const DtPoint &p2) const
 Do these two points have the same values?
bool operator!= (const DtPoint &p2) const
 Do these two points have different values?
DtPoint operator+ (const DtPoint &p2) const
 Create a new point which is these two points added together.
DtPoint operator- (const DtPoint &p2) const
 Create a new point which is this point subtracted by another.

Public Attributes

float myX
float myY

Detailed Description

A 2D point.

Constructor & Destructor Documentation

makVrv::DtPoint::DtPoint ( float  x = 0.0f,
float  y = 0.0f 
)
inline

Constructor takes the x & y values,.

Member Function Documentation

DtPoint& makVrv::DtPoint::operator+= ( const DtPoint p2)
inline

Increment this point by another.

References myX, and myY.

DtPoint& makVrv::DtPoint::operator-= ( const DtPoint p2)
inline

Decrement this point by another.

References myX, and myY.

bool makVrv::DtPoint::operator== ( const DtPoint p2) const
inline

Do these two points have the same values?

References myX, and myY.

bool makVrv::DtPoint::operator!= ( const DtPoint p2) const
inline

Do these two points have different values?

References myX, and myY.

DtPoint makVrv::DtPoint::operator+ ( const DtPoint p2) const
inline

Create a new point which is these two points added together.

References myX, and myY.

DtPoint makVrv::DtPoint::operator- ( const DtPoint p2) const
inline

Create a new point which is this point subtracted by another.

References myX, and myY.

Member Data Documentation

float makVrv::DtPoint::myX
float makVrv::DtPoint::myY

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)