VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes
makVrv::DtPoint Class Reference

A 2D point. More...

List of all members.

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


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)