#include <Pt/Gfx/Point.h>
Point with X ynd X coordinates.
Public Member Functions | |
BasicPoint () | |
Construct a BasicPoint of (0,0) | |
BasicPoint (T x, T y) | |
Construct a BasicPoint of (x,y) | |
BasicPoint (const BasicPoint &pt) | |
Construct a BasicPoint from another BasicPoint. | |
const BasicPoint & | addX (T x) |
Increment the X component of the BasicPoint by the given value. | |
const BasicPoint & | addY (T y) |
Increment the Y component of the BasicPoint by the given value. | |
template<typename T2 > | |
T | calcDistance (const BasicPoint< T2 > &otherPoint) const |
Calculate distance between this BasicPoint and the given BasicPoint. | |
const BasicPoint & | move (T dx, T dy) |
Move the BasicPoint as far as th given the X and Y distances. | |
void | set (T x_, T y_) |
Set the X and Y components of the BasicPoint. | |
void | setX (T x_) |
Set the X component of the BasicPoint. | |
void | setY (T y_) |
Set the Y component of the BasicPoint. | |
const BasicPoint & | subX (T x) |
Decrement the X component of the BasicPoint by the given value. | |
const BasicPoint & | subY (T y) |
Decrement the Y component of the BasicPoint by the given value. | |
T | x () const |
Return the X component of the BasicPoint. | |
T | y () const |
Return the Y component of the BasicPoint. | |