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; }
52 std::ostream&
operator<<(std::ostream& stream,
const Point& point);
56 #endif // LSST_JOINTCAL_POINT_H
Point operator-(const Point &Right) const
Difference.
std::ostream & operator<<(std::ostream &stream, const Gtransfo >ransfo)
allows 'stream << Transfo;' (by calling gtransfo.dump(stream)).
virtual void dump(std::ostream &s=std::cout) const
utility
double computeDist2(const Point &other) const
distance squared to other
Point(double xx, double yy)
Point operator+(const Point &Right) const
Sum.
double Distance(const Point &other) const
friend std::ostream & operator<<(std::ostream &stream, const Point &point)