BasicPoint< T > Class Template Reference

#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 BasicPointaddX (T x)
 Increment the X component of the BasicPoint by the given value.
 
const BasicPointaddY (T y)
 Increment the Y component of the BasicPoint by the given value.
 
template<typename T2 >
calcDistance (const BasicPoint< T2 > &otherPoint) const
 Calculate distance between this BasicPoint and the given BasicPoint.
 
const BasicPointmove (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 BasicPointsubX (T x)
 Decrement the X component of the BasicPoint by the given value.
 
const BasicPointsubY (T y)
 Decrement the Y component of the BasicPoint by the given value.
 
x () const
 Return the X component of the BasicPoint.
 
y () const
 Return the Y component of the BasicPoint.