TPoint3D Class Reference

class TPoint3D

Stores a three-dimensional point in Cartesian or polar co-ordinates. Its data members (iX, iY and iZ) are public and can be manipulated directly.

Public Member Functions
TPoint3D(TUninitialized)
TPoint3D()
TPoint3D(TInt, TInt, TInt)
TPoint3D(const TPoint &)
IMPORT_C TPointAsPoint()
IMPORT_C voidSetPoint(const TPoint &)
IMPORT_C voidSetXYZ(TInt, TInt, TInt)
IMPORT_C TBooloperator!=(const TPoint3D &)
IMPORT_C TPoint3Doperator+(const TPoint3D &)
IMPORT_C TPoint3Doperator+(const TPoint &)
IMPORT_C TPoint3D &operator+=(const TPoint3D &)
IMPORT_C TPoint3D &operator+=(const TPoint &)
IMPORT_C TPoint3Doperator-(const TPoint3D &)
IMPORT_C TPoint3Doperator-(const TPoint &)
IMPORT_C TPoint3Doperator-()
IMPORT_C TPoint3D &operator-=(const TPoint3D &)
IMPORT_C TPoint3D &operator-=(const TPoint &)
IMPORT_C TBooloperator==(const TPoint3D &)
Public Member Enumerations
enumTUninitialized { EUninitialized }
Public Attributes
TInt iX
TInt iY
TInt iZ

Constructor & Destructor Documentation

TPoint3D(TUninitialized)

TPoint3D(TUninitialized)[inline]

TUninitialized Constructor

Parameters

TUninitialized

TPoint3D()

TPoint3D()[inline]

Constructs default TPoint3D, initialising its iX , iY and iZ members to zero.

Constructs default 3Dpoint, initialising its iX, iY and iZ members to zero.

TPoint3D(TInt, TInt, TInt)

TPoint3D(TIntaX,
TIntaY,
TIntaZ
)[inline]

Constructs TPoint3D with the specified x,y and z co-ordinates.

Constructs TPoint3D with the specified x,y and z co-ordinates.

Parameters

TInt aXThe x co-ordinate value.
TInt aYThe y co-ordinate value.
TInt aZThe z co-ordinate value.

TPoint3D(const TPoint &)

TPoint3D(const TPoint &aPoint)[inline]

Copy Construct from TPoint , initialises Z co-ordinate to Zero

Parameters

const TPoint & aPoint

Member Functions Documentation

AsPoint()

IMPORT_C TPointAsPoint()const

Returns TPoint from TPoint3D

SetPoint(const TPoint &)

IMPORT_C voidSetPoint(const TPoint &aPoint)

TPoint3D from TPoint, sets the Z co-ordinate to Zero

Parameters

const TPoint & aPoint

SetXYZ(TInt, TInt, TInt)

IMPORT_C voidSetXYZ(TIntaX,
TIntaY,
TIntaZ
)

Set Method to set the xyz co-ordinates of TPoint3D

Parameters

TInt aX
TInt aY
TInt aZ

operator!=(const TPoint3D &)

IMPORT_C TBooloperator!=(const TPoint3D &aPoint3D)const

Parameters

const TPoint3D & aPoint3D

operator+(const TPoint3D &)

IMPORT_C TPoint3Doperator+(const TPoint3D &aPoint3D)const

Parameters

const TPoint3D & aPoint3D

operator+(const TPoint &)

IMPORT_C TPoint3Doperator+(const TPoint &aPoint)const

Parameters

const TPoint & aPoint

operator+=(const TPoint3D &)

IMPORT_C TPoint3D &operator+=(const TPoint3D &aPoint3D)

Parameters

const TPoint3D & aPoint3D

operator+=(const TPoint &)

IMPORT_C TPoint3D &operator+=(const TPoint &aPoint)

Parameters

const TPoint & aPoint

operator-(const TPoint3D &)

IMPORT_C TPoint3Doperator-(const TPoint3D &aPoint3D)const

Parameters

const TPoint3D & aPoint3D

operator-(const TPoint &)

IMPORT_C TPoint3Doperator-(const TPoint &aPoint)const

Parameters

const TPoint & aPoint

operator-()

IMPORT_C TPoint3Doperator-()const

Unary minus operator. The operator returns the negation of this Point3D

operator-=(const TPoint3D &)

IMPORT_C TPoint3D &operator-=(const TPoint3D &aPoint3D)

Parameters

const TPoint3D & aPoint3D

operator-=(const TPoint &)

IMPORT_C TPoint3D &operator-=(const TPoint &aPoint)

Parameters

const TPoint & aPoint

operator==(const TPoint3D &)

IMPORT_C TBooloperator==(const TPoint3D &aPoint3D)const

Parameters

const TPoint3D & aPoint3D

Member Enumerations Documentation

Enum TUninitialized

Enumerators

EUninitialized

Member Data Documentation

TInt iX

TInt iX

The x co-ordinate.

TInt iY

TInt iY

The y co-ordinate.

TInt iZ

TInt iZ

The z co-ordinate.