lsst.jointcal  16.0-20-g17d57d5+1
FatPoint.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_FAT_POINT_H
3 #define LSST_JOINTCAL_FAT_POINT_H
4 
5 #include "lsst/jointcal/Point.h"
6 
7 namespace lsst {
8 namespace jointcal {
9 
11 class FatPoint : public Point {
12 public:
13  double vx, vy, vxy;
14 
15  FatPoint() : Point() {
16  vx = vy = 1;
17  vxy = 0;
18  };
19 
20  FatPoint(const Point& P, double Vx = 1, double Vy = 1, double Vxy = 0)
21  : Point(P), vx(Vx), vy(Vy), vxy(Vxy){};
22 
23  FatPoint(const double X, const double Y, const double Vx = 1, const double Vy = 1, const double Vxy = 0)
24  : Point(X, Y), vx(Vx), vy(Vy), vxy(Vxy){};
25 
26  void dump(std::ostream& s = std::cout) const {
27  Point::dump(s);
28  s << " vxx,vyy,vxy " << vx << ' ' << vy << ' ' << vxy;
29  }
30 };
31 } // namespace jointcal
32 } // namespace lsst
33 
34 #endif // LSST_JOINTCAL_FAT_POINT_H
A point in a plane.
Definition: Point.h:13
void dump(std::ostream &s=std::cout) const
utility
Definition: FatPoint.h:26
virtual void dump(std::ostream &s=std::cout) const
utility
Definition: Point.h:43
FatPoint(const Point &P, double Vx=1, double Vy=1, double Vxy=0)
Definition: FatPoint.h:20
A Point with uncertainties.
Definition: FatPoint.h:11
Class for a simple mapping implementing a generic Gtransfo.
FatPoint(const double X, const double Y, const double Vx=1, const double Vy=1, const double Vxy=0)
Definition: FatPoint.h:23
STL class.