LSSTApplications  17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Friends | List of all members
lsst::jointcal::Point Class Reference

A point in a plane. More...

#include <Point.h>

Inheritance diagram for lsst::jointcal::Point:
lsst::jointcal::FatPoint lsst::jointcal::BaseStar lsst::jointcal::FittedStar lsst::jointcal::MeasuredStar lsst::jointcal::RefStar

Public Member Functions

virtual ~Point ()
 
 Point ()
 
 Point (double xx, double yy)
 
double Distance (const Point &other) const
 
double computeDist2 (const Point &other) const
 distance squared to other More...
 
Point operator+ (const Point &Right) const
 Sum. More...
 
Point operator- (const Point &Right) const
 Difference. More...
 
virtual void dump (std::ostream &s=std::cout) const
 utility More...
 

Public Attributes

double x
 coordinate More...
 
double y
 

Friends

std::ostreamoperator<< (std::ostream &stream, const Point &point)
 

Detailed Description

A point in a plane.

Definition at line 36 of file Point.h.

Constructor & Destructor Documentation

◆ ~Point()

virtual lsst::jointcal::Point::~Point ( )
inlinevirtual

Definition at line 38 of file Point.h.

38 {}

◆ Point() [1/2]

lsst::jointcal::Point::Point ( )
inline
  • contructor

Definition at line 44 of file Point.h.

44 : x(0), y(0){};
double x
coordinate
Definition: Point.h:41

◆ Point() [2/2]

lsst::jointcal::Point::Point ( double  xx,
double  yy 
)
inline
  • contructor

Definition at line 47 of file Point.h.

47 : x(xx), y(yy){};
double x
coordinate
Definition: Point.h:41

Member Function Documentation

◆ computeDist2()

double lsst::jointcal::Point::computeDist2 ( const Point other) const
inline

distance squared to other

Definition at line 55 of file Point.h.

55  {
56  return ((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
57  };
double x
coordinate
Definition: Point.h:41
ItemVariant const * other
Definition: Schema.cc:56

◆ Distance()

double lsst::jointcal::Point::Distance ( const Point other) const
inline

Definition at line 50 of file Point.h.

50  {
51  return sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
52  };
double x
coordinate
Definition: Point.h:41
ItemVariant const * other
Definition: Schema.cc:56
T sqrt(T... args)

◆ dump()

virtual void lsst::jointcal::Point::dump ( std::ostream s = std::cout) const
inlinevirtual

utility

Reimplemented in lsst::jointcal::FittedStar, lsst::jointcal::MeasuredStar, lsst::jointcal::BaseStar, and lsst::jointcal::FatPoint.

Definition at line 66 of file Point.h.

66 { s << "x: " << x << " y: " << y; }
double x
coordinate
Definition: Point.h:41

◆ operator+()

Point lsst::jointcal::Point::operator+ ( const Point Right) const
inline

Sum.

Definition at line 60 of file Point.h.

60 { return Point(x + Right.x, y + Right.y); }
double x
coordinate
Definition: Point.h:41

◆ operator-()

Point lsst::jointcal::Point::operator- ( const Point Right) const
inline

Difference.

Definition at line 63 of file Point.h.

63 { return Point(x - Right.x, y - Right.y); }
double x
coordinate
Definition: Point.h:41

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream stream,
const Point point 
)
friend

Definition at line 69 of file Point.h.

69  {
70  point.dump(stream);
71  return stream;
72  }

Member Data Documentation

◆ x

double lsst::jointcal::Point::x

coordinate

Definition at line 41 of file Point.h.

◆ y

double lsst::jointcal::Point::y

Definition at line 41 of file Point.h.


The documentation for this class was generated from the following file: