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));
56 #endif // LSST_JOINTCAL_POINT_H
virtual void dump(std::ostream &s=std::cout) const
utility
double Distance(const Point &other) const
A base class for image defects.
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)