5 #ifndef BPP_GRAPHICS_POINT2D_H 6 #define BPP_GRAPHICS_POINT2D_H 9 #include "../Clonable.h" 62 void setX(
const T x) { x_ = x; }
67 void setY(
const T y) { y_ = y; }
86 return x_ == coord.
x_ && y_ == coord.
y_;
109 #endif // BPP_GRAPHICS_POINT2D_H
virtual ~Point2D()
Destroy the Point2D object.
void setY(const T y)
Set only the latitude.
virtual bool operator==(const Point2D< T > &coord) const
The == operator.
Point2D< T > * clone() const
Implement the Clonable interface.
Point2D(const T x=0, const T y=0)
Build a new Point2D from two values.
const T & getY() const
Get the latitude.
const T & getX() const
Get the longitude.
bool hasSameCoordsAs(const Point2D< T > &coord) const
Compares two Point2D objets.
virtual bool operator!=(const Point2D< T > &coord) const
The != operator.
void setX(const T x)
Set only the longitude.
The Clonable interface (allow an object to be cloned).
void setCoord(const T x, const T y)
Set the two values.