TGfxPoint2D Class Reference

class TGfxPoint2D

Implementation of a 2D point.

Gfx2D.lib
Since
1.0

Constructor & Destructor Documentation

TGfxPoint2D()

TGfxPoint2D()

Constructor. Default coordinates to (0, 0).

Since
1.0

TGfxPoint2D(TFloatFixPt, TFloatFixPt)

TGfxPoint2D(TFloatFixPtaX,
TFloatFixPtaY
)

Constructor. Define point to be at the given coordinates.

Since
1.0

Parameters

TFloatFixPt aX: x coordinate
TFloatFixPt aY: y coordinate

Member Functions Documentation

Distance(const TGfxPoint2D &)

TFloatFixPt Distance(const TGfxPoint2D &aPoint)

Get distance between this point and the given point.

Since
1.0

Parameters

const TGfxPoint2D & aPoint: point for distance calculation

DistanceSq(const TGfxPoint2D &)

TFloatFixPt DistanceSq(const TGfxPoint2D &aPoint)

Get distance squared between this point and the given point.

Since
1.0

Parameters

const TGfxPoint2D & aPoint: point for distance calculation

operator!=(const TGfxPoint2D &)

TInt operator!=(const TGfxPoint2D &aPoint)const

Parameters

const TGfxPoint2D & aPoint

operator==(const TGfxPoint2D &)

TInt operator==(const TGfxPoint2D &aPoint)const

Parameters

const TGfxPoint2D & aPoint

Member Data Documentation

TFloatFixPt iX

TFloatFixPt iX

TFloatFixPt iY

TFloatFixPt iY