OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TPointF is similar to TPoint, but uses floating variables rather than integers. More...
#include <owl/geometry.h>
Public Member Functions | |
TPointF () | |
Default constructor that does nothing. | |
TPointF (float _x, float _y) | |
Constructor that initializes the location. | |
TPointF (const TPointF &point) | |
Constructor that copies the location. | |
bool | operator== (const TPointF &other) const |
Returns true if the points are at the same location. | |
bool | operator!= (const TPointF &other) const |
Return true if the points are not at the same location. | |
float | X () const |
Returns X component of the point. | |
float | Y () const |
Returns Y component of the point. | |
TPointF | OffsetBy (float dx, float dy) const |
Moves the point by an offset. | |
TPointF | operator+ (const TPointF &size) const |
Returns a new point (x+cx, y+cy). | |
TPointF | operator- (const TPointF &point) const |
Returns a new point subtracted from the current point. | |
TPointF | operator- () const |
Returns the negative of the point. | |
TPointF & | Offset (float dx, float dy) |
Moves the point by an offset. | |
TPointF & | operator+= (const TPointF &size) |
Returns the new point moved by the offset. | |
TPointF & | operator-= (const TPointF &size) |
Returns the new point subtracted from the current. | |
Additional Inherited Members | |
Public Attributes inherited from owl::tPOINTF | |
float | x |
float | y |
TPointF is similar to TPoint, but uses floating variables rather than integers.
Definition at line 181 of file geometry.h.
|
inline |
Default constructor that does nothing.
Definition at line 750 of file geometry.h.
References owl::tPOINTF::x, and owl::tPOINTF::y.
Constructor that initializes the location.
Definition at line 760 of file geometry.h.
References owl::tPOINTF::x, and owl::tPOINTF::y.
|
inline |
Constructor that copies the location.
Definition at line 770 of file geometry.h.
References owl::tPOINTF::x, and owl::tPOINTF::y.
Moves the point by an offset.
Definition at line 852 of file geometry.h.
References owl::tPOINTF::x, and owl::tPOINTF::y.
Moves the point by an offset.
Definition at line 798 of file geometry.h.
References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.
Return true if the points are not at the same location.
Definition at line 825 of file geometry.h.
References owl::ToBool(), owl::tPOINTF::x, and owl::tPOINTF::y.
Returns a new point (x+cx, y+cy).
Definition at line 834 of file geometry.h.
References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.
Returns the new point moved by the offset.
Definition at line 863 of file geometry.h.
References owl::tPOINTF::x, and owl::tPOINTF::y.
|
inline |
Returns the negative of the point.
Definition at line 807 of file geometry.h.
References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.
Returns a new point subtracted from the current point.
Definition at line 843 of file geometry.h.
References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.
Returns the new point subtracted from the current.
Definition at line 874 of file geometry.h.
References owl::tPOINTF::x, and owl::tPOINTF::y.
Returns true if the points are at the same location.
Definition at line 816 of file geometry.h.
References owl::ToBool(), owl::tPOINTF::x, and owl::tPOINTF::y.
|
inline |
Returns X component of the point.
Definition at line 780 of file geometry.h.
References owl::tPOINTF::x.
|
inline |
Returns Y component of the point.
Definition at line 789 of file geometry.h.
References owl::tPOINTF::y.