TPoint3D Class Reference
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.
Constructor & Destructor Documentation
TPoint3D(TUninitialized)
TUninitialized Constructor
TPoint3D()
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)
Constructs TPoint3D with the specified x,y and z co-ordinates.
Constructs TPoint3D with the specified x,y and z co-ordinates.
Parameters
TInt aX | The x co-ordinate value. |
TInt aY | The y co-ordinate value. |
TInt aZ | The z co-ordinate value. |
TPoint3D(const TPoint &)
TPoint3D | ( | const TPoint & | aPoint | ) | [inline] |
Copy Construct from TPoint , initialises Z co-ordinate to Zero
Member Functions Documentation
SetPoint(const TPoint &)
IMPORT_C void | SetPoint | ( | const TPoint & | aPoint | ) | |
SetXYZ(TInt, TInt, TInt)
Set Method to set the xyz co-ordinates of TPoint3D
Sets the x , y and z co-ordinates for this point.
Parameters
TInt aX | The value to assign to the x co-ordinate. |
TInt aY | The value to assign to the y co-ordinate. |
TInt aZ | The value to assign to the z co-ordinate. |
operator!=(const TPoint3D &)
Compares two 3D points for inequality.
For two points to be unequal, their x or y or z co-ordinate values must be different.
Parameters
const TPoint3D & aPoint3D | The point to be compared with this point. |
operator+(const TPoint3D &)
The operator adds the specified point to this point, and returns the resulting value.
Parameters
const TPoint3D & aPoint3D | The point to be added to this point. |
operator+(const TPoint &)
TPoint addition operator.
The operator adds the specified TPoint to this point, and returns the resulting value.
operator+=(const TPoint3D &)
TPoint3D addition assignment operator.
The operator adds the specified point to this point, and assigns the result back to this point.
Parameters
const TPoint3D & aPoint3D | The point to be added. |
operator+=(const TPoint &)
TPoint addition assignment operator.
The operator adds the specified TPoint to this point, and assigns the result back to this point.
The operation proceeds by: adding x and y cordinates of the TPoin to this point and no changes to the Z-coordinatete value
Parameters
const TPoint & aPoint | The TPoint to be added to this point. |
operator-(const TPoint3D &)
TPoint3D subtraction operator.
The operator subtracts the specified point from this point, and returns the resulting value.
Parameters
const TPoint3D & aPoint3D | The point to be subtracted from this point. |
operator-(const TPoint &)
TPoint subtraction operator.
The operator subtracts the specified TPoint from this point, and returns the resulting value.
Parameters
const TPoint & aPoint | The TPoint to be subtracted. |
operator-()
Unary minus operator. The operator returns the negation of this Point3D
Unary minus operator.
The operator returns the negation of this point.
operator-=(const TPoint3D &)
TPoint3D subtraction assignment operator.
The operator subtracts the specified point from this point, and assigns the result back to this point.
operator-=(const TPoint &)
TPoint subtraction assignment operator.
The operator subtracts the specified TPoint from this point(TPoint3D), and assigns the result back to this point.
The operation proceeds by subtracting x and y cordinates of the TPoin to this point and no changes to the Z-coordinatete value
Parameters
const TPoint & aPoint | The aPoint to be subtracted. |
operator==(const TPoint3D &)
Compares two 3D points(TPoint3D) for equality.
For two TPoint3D to be equal, their x , y and zco-ordinate values must be equal.
Parameters
const TPoint3D & aPoint3D | The point to be compared with this point. |
Member Enumerations Documentation
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.