VCF::Point Class Reference
represents a 2 dimensional coordinate (x and y) and stores the data as doubles, for maximum precision. More...
#include <vcf/GraphicsKit/Point.h>
Inheritance diagram for VCF::Point:

Public Member Functions | |
| Point (const double &x, const double &y) | |
| Point () | |
| Point (const Point &pt) | |
| Point & | operator= (const Point &pt) |
| void | init () |
| initializes the point to zero | |
| Point & | getPoint (void) |
| gets a reference to this Rect instance itself. | |
| void | setPoint (const Point &point) |
| sets the point value from another point | |
| bool | isNull () const |
| tells if the point has both zero coordinates | |
| void | setNull () |
| initializes the point to zero coordinates | |
| Point & | offset (const double &_offset) |
| translates a point by a delta in x and and the same delta in y | |
| Point & | offset (const double &offsetX, const double &offsetY) |
| translates a point by a delta in x and and a delta in y | |
| Point & | offset (const Point &offsetPt) |
| translates a point by a delta in x and and a delta in y indicated as a point for clarity of use | |
| bool | closeTo (const double &x, const double &y, const double &tolerance=1.0) const |
| determines if this Point instance has x and y coordinates within a given tolerance range. | |
| bool | closeTo (const Point &pt, const double &tolerance=1.0) const |
| determines if this Point instance is close to a specified point within a given tolerance range. | |
| bool | isInBetween (const Point &pt1, const Point &pt2) const |
| determines if this Point instance is in the rectangle having its opposite corners as specified by two given points. | |
| bool | isInBetweenOpen (const Point &pt1, const Point &pt2) const |
| determines if this Point instance is in the rectangle having its opposite corners as specified by two given points. | |
| bool | isInBetweenClose (const Point &pt1, const Point &pt2) const |
| determines if this Point instance is in the rectangle having its opposite corners as specified by two given points. | |
| bool | operator== (const Point &pointToCompare) const |
| bool | operator!= (const Point &pointToCompare) const |
| bool | operator<= (const Point &pointToCompare) const |
| bool | operator< (const Point &pointToCompare) const |
| bool | operator>= (const Point &pointToCompare) const |
| bool | operator> (const Point &pointToCompare) const |
| Point & | operator+= (const Point &pt) |
| Point & | operator-= (const Point &pt) |
| Point & | operator *= (const Point &pt) |
| Point & | operator/= (const Point &pt) |
| Point | operator+ (const Point &pt) const |
| Point | operator- (const Point &pt) const |
| Point | operator * (const Point &pt) const |
| Point | operator/ (const Point &pt) const |
| Point & | operator+= (const double d) |
| Point & | operator-= (const double d) |
| Point & | operator *= (const double d) |
| Point & | operator/= (const double d) |
| Point | operator+ (const double d) const |
| Point | operator- (const double d) const |
| Point | operator * (const double d) const |
| Point | operator/ (const double d) const |
| virtual String | toString () const |
| returns a String giving the infos about this Point instance. | |
Public Attributes | |
| double | x_ |
| the x coordinate of the point - specifies horizontal values | |
| double | y_ |
| the y coordinate of the point - specifies vertical values | |
Detailed Description
represents a 2 dimensional coordinate (x and y) and stores the data as doubles, for maximum precision.
Constructor & Destructor Documentation
|
||||||||||||
|
|
|
|
|
|
|
|
Member Function Documentation
|
||||||||||||
|
determines if this Point instance is close to a specified point within a given tolerance range.
|
|
||||||||||||||||
|
determines if this Point instance has x and y coordinates within a given tolerance range.
|
|
|
gets a reference to this Rect instance itself. to be used as conversion operator without introducing ambiguity between operators |
|
|
initializes the point to zero
Reimplemented from VCF::Object. |
|
||||||||||||
|
determines if this Point instance is in the rectangle having its opposite corners as specified by two given points. If this point is on the top or on the left border of the described rectangle, it is considered inside the rectangle. |
|
||||||||||||
|
determines if this Point instance is in the rectangle having its opposite corners as specified by two given points. If this point is on the top or on the left border of the described rectangle, it is considered inside the rectangle. |
|
||||||||||||
|
determines if this Point instance is in the rectangle having its opposite corners as specified by two given points. If this point is on the top or on the left border of the described rectangle, it is not considered inside the rectangle. |
|
|
tells if the point has both zero coordinates
|
|
|
translates a point by a delta in x and and a delta in y indicated as a point for clarity of use
|
|
||||||||||||
|
translates a point by a delta in x and and a delta in y
|
|
|
translates a point by a delta in x and and the same delta in y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initializes the point to zero coordinates
|
|
|
sets the point value from another point
|
|
|
returns a String giving the infos about this Point instance.
|
Member Data Documentation
|
|
the x coordinate of the point - specifies horizontal values
|
|
|
the y coordinate of the point - specifies vertical values
|
The documentation for this class was generated from the following file:
- vcf/GraphicsKit/Point.h
