Public Member Functions | |
Constructor / Destructor | |
CP_Point () | |
Constructor. | |
CP_Point (float inHor, float inVer) | |
CP_Point (const CP_Point &inFloatPoint) | |
~CP_Point () | |
Destructor. | |
Comparers | |
bool | operator== (const CP_Point &inPoint) const |
bool | operator!= (const CP_Point &inPoint) const |
bool | operator>= (const CP_Point &inPoint) const |
bool | operator<= (const CP_Point &inPoint) const |
bool | operator> (const CP_Point &inPoint) |
bool | operator< (const CP_Point &inPoint) |
Getters | |
float | h () const |
float | v () const |
Negative | |
CP_Point | operator- () const |
Math | |
CP_Point & | operator+= (const CP_Point &inPoint) |
CP_Point & | operator-= (const CP_Point &inPoint) |
CP_Point & | operator *= (const CP_Point &inPoint) |
CP_Point & | operator/= (const CP_Point &inPoint) |
CP_Point & | operator+= (const CP_Size &inSize) |
CP_Point & | operator-= (const CP_Size &inSize) |
CP_Point | operator+ (const CP_Point &inPoint) const |
CP_Point | operator- (const CP_Point &inPoint) const |
CP_Point | operator * (const CP_Point &inPoint) const |
CP_Point | operator/ (const CP_Point &inPoint) const |
CP_Point & | operator= (const CP_Point &) |
Movement | |
void | Offset (const float horAmt, const float verAmt) |
Selectors | |
float | operator[] (CP_VHSelector sel) |
const float | operator[] (CP_VHSelector sel) const |
Setters | |
void | Set (const float inHor, const float inVer) |
void | Set (const CP_Point &inPoint) |
void | SetH (const float inHor) |
void | SetV (const float inVer) |
Utility | |
void | MakeEmpty () |
Point | |
CP_Point (const Point &inPoint) | |
operator Point () | |
operator const Point () const | |
operator Point * () | |
operator const Point * () const | |
CP_Point & | operator= (Point inPoint) |
POINT | |
CP_Point (const POINT &inPoint) | |
operator POINT () | |
operator const POINT () const | |
CP_Point & | operator= (POINT inPoint) |
Protected Attributes | |
float | fHorizontalCoord |
float | fVerticalCoord |
|
Constructor. This creates a point with all coordinates at 0. |
|
Constructor. This constructs the point from the passed in floating point horizontal and fVerticalCoordertical coordinates.
|
|
Copy constructor.
|
|
Destructor. |
|
Vertical coordinate. |
|
Constructor. Assigns the coordinates from the passed in Windows POINT structure.
|
|
Comparison operator. Compares the coordinates of this class with that of the passed in point.
|
|
Inequality operator. Compares the coordinates of this class with that of the passed in point and returns true if they are not equal.
|
|
Greater than or equal to operator.
|
|
Less than or equal to operator.
|
|
Greater than operator.
|
|
Less than operator.
|
|
Return the horizontal or x coordinate.
|
|
Return the vertical or y coordinate.
|
|
Negation operator. Returns a CP_point containing the negative coordinates of this point.
|
|
Plus equals operator. Adds the coordinates of the passed in point to those of this object.
|
|
Minux equals operator. Subtracts the coordinates of the passed in point to those of this object.
|
|
Times equals operator. Multiples the coordinates of the passed in point to those of this object.
|
|
Divide equals operator. Divides the coordinates of the passed in point to those of this object.
|
|
Plus equals operator. Adds the coordinates of the passed in size to those of this object.
|
|
Minus equals operator. Subtracts the coordinates of the passed in size to those of this object.
|
|
Addition operator. Adds the coordinates of the passed in point to those of this object.
|
|
Subtraction operator. Subtracts the coordinates of the passed in point to those of this object.
|
|
Multiplication operator. Multiples the coordinates of the passed in point to those of this object.
|
|
Division operator. Divides the coordinates of the passed in point to those of this object.
|
|
Equality operator. Assigns the values to this point from the passed in point.
|
|
Offset the point by the passed in amounts.
|
|
Return the coordinate based on the CP_VHSelector we pass in.
|
|
Return the coordinate based on the CP_VHSelector we pass in.
|
|
Sets the coordinates from the passed in parameters.
|
|
Sets the coordinates from the passed in CP_Point.
|
|
|
|
|
|
Makes this point empty by setting the coordinates to 0.
|
|
operator Point to confVerticalCoordert this objects coordinates to SInt16s and return as a MacOS Point.
|
|
operator Point to confVerticalCoordert this objects coordinates to SInt16s and return as a MacOS Point. Const fVerticalCoordersion.
|
|
operator Point to confVerticalCoordert this objects coordinates to SInt16s and return as a MacOS Point.
|
|
operator Point to confVerticalCoordert this objects coordinates to SInt16s and return as a MacOS Point. Const fVerticalCoordersion.
|
|
Assignment operator. Assigns the coordines from the passed in MacOS Point.
|
|
Operator POINT. Returns a Windows POINT structure from this objects coordinates.
|
|
Operator POINT. Returns a Windows POINT structure from this objects coordinates. Const fVerticalCoordersion.
|
|
Assignment operator. Assigns the coordinates of this object from the passed in Windows POINT structure.
|
|
|
|
Horizontal coordinate. |