43 #include "../Clonable.h" 119 return x_ == coord.
x_ &&
y_ == coord.
y_;
145 #endif // _POINT2D_H_
virtual ~Point2D()
Destroy the Point2D object.
void setY(const T y)
Set only the latitude.
This class allows to perform a correspondence analysis.
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.