LSSTApplications  18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
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  };
ItemVariant const * other
Definition: Schema.cc:56
double x
coordinate
Definition: Point.h:41

◆ 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  };
ItemVariant const * other
Definition: Schema.cc:56
double x
coordinate
Definition: Point.h:41
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: