2 #ifndef LSST_JOINTCAL_POINT_H 3 #define LSST_JOINTCAL_POINT_H 24 Point(
double xx,
double yy) : x(xx), y(yy){};
28 return sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
33 return ((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
43 virtual void dump(std::ostream& s = std::cout)
const { s <<
" x " << x <<
" y " <<
y; }
56 #endif // LSST_JOINTCAL_POINT_H
virtual void dump(std::ostream &s=std::cout) const
utility
double Distance(const Point &other) const
Class for a simple mapping implementing a generic Gtransfo.
Point(double xx, double yy)
Point operator+(const Point &Right) const
Sum.
double computeDist2(const Point &other) const
distance squared to other
Point operator-(const Point &Right) const
Difference.
friend std::ostream & operator<<(std::ostream &stream, const Point &point)