#include <e32cmn.h>
class TPoint3D |
Public Attributes | |
---|---|
TInt | iX |
TInt | iY |
TInt | iZ |
Public Member Enumerations | |
---|---|
enum | TUninitialized { EUninitialized } |
Public Member Functions | |
---|---|
TPoint3D(TUninitialized) | |
TPoint3D() | |
TPoint3D(TInt, TInt, TInt) | |
TPoint3D(const TPoint &) | |
IMPORT_C TPoint | AsPoint() |
IMPORT_C void | SetPoint(const TPoint &) |
IMPORT_C void | SetXYZ(TInt, TInt, TInt) |
IMPORT_C TBool | operator!=(const TPoint3D &) |
IMPORT_C TPoint3D | operator+(const TPoint3D &) |
IMPORT_C TPoint3D | operator+(const TPoint &) |
IMPORT_C TPoint3D & | operator+=(const TPoint3D &) |
IMPORT_C TPoint3D & | operator+=(const TPoint &) |
IMPORT_C TPoint3D | operator-(const TPoint3D &) |
IMPORT_C TPoint3D | operator-(const TPoint &) |
IMPORT_C TPoint3D | operator-() |
IMPORT_C TPoint3D & | operator-=(const TPoint3D &) |
IMPORT_C TPoint3D & | operator-=(const TPoint &) |
IMPORT_C TBool | operator==(const 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.
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.
Compares two 3D points for inequality.
For two points to be unequal, their x or y or z co-ordinate values must be different.
Parameter | Description |
---|---|
aPoint3D | The point to be compared with this point. |
Returns: True, if the two points are unequal; false, otherwise.
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
Parameter | Description |
---|---|
aPoint | The TPoint to be added to this point. |
Returns: A reference to this point object.
TPoint3D subtraction operator.
The operator subtracts the specified point from this point, and returns the resulting value.
Parameter | Description |
---|---|
aPoint3D | The point to be subtracted from this point. |
Returns: the point(TPoint3D) which is the result of the operation.
IMPORT_C TPoint3D | operator- | ( | ) | const |
Unary minus operator. The operator returns the negation of this Point3D
Unary minus operator.
The operator returns the negation of this point.
Returns: the point(TPoint3D) which is the result of Unary minus operation.
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
Parameter | Description |
---|---|
aPoint | The aPoint to be subtracted. |
Returns: A reference to this point object.
Compares two 3D points(TPoint3D) for equality.
For two TPoint3D to be equal, their x , y and zco-ordinate values must be equal.
Parameter | Description |
---|---|
aPoint3D | The point to be compared with this point. |
Returns: True, if the two points are equal; false, otherwise.