LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst::meas::astrom::ProxyPair Struct Reference

#include <matchOptimisticB.h>

Public Member Functions

 ProxyPair (RecordProxy const &s1, RecordProxy const &s2)
 

Public Attributes

RecordProxy first
 
RecordProxy second
 
double distance
 
double pa
 

Detailed Description

Definition at line 59 of file matchOptimisticB.h.

Constructor & Destructor Documentation

◆ ProxyPair()

lsst::meas::astrom::ProxyPair::ProxyPair ( RecordProxy const &  s1,
RecordProxy const &  s2 
)
inline

Definition at line 65 of file matchOptimisticB.h.

65  : first(s1), second(s2) {
66  double x1 = first.position.getX();
67  double y1 = first.position.getY();
68  double x2 = second.position.getX();
69  double y2 = second.position.getY();
70  distance = std::hypot(x2 - x1, y2 - y1);
71  pa = std::atan2(y2 - y1, x2 - x1);
72  }

Member Data Documentation

◆ distance

double lsst::meas::astrom::ProxyPair::distance

Definition at line 62 of file matchOptimisticB.h.

◆ first

RecordProxy lsst::meas::astrom::ProxyPair::first

Definition at line 60 of file matchOptimisticB.h.

◆ pa

double lsst::meas::astrom::ProxyPair::pa

Definition at line 63 of file matchOptimisticB.h.

◆ second

RecordProxy lsst::meas::astrom::ProxyPair::second

Definition at line 61 of file matchOptimisticB.h.


The documentation for this struct was generated from the following file:
lsst::meas::astrom::ProxyPair::second
RecordProxy second
Definition: matchOptimisticB.h:61
std::atan2
T atan2(T... args)
lsst::meas::astrom::RecordProxy::position
geom::Point2D position
Definition: matchOptimisticB.h:24
lsst::meas::astrom::ProxyPair::distance
double distance
Definition: matchOptimisticB.h:62
std::hypot
T hypot(T... args)
lsst::meas::astrom::ProxyPair::pa
double pa
Definition: matchOptimisticB.h:63
lsst::meas::astrom::ProxyPair::first
RecordProxy first
Definition: matchOptimisticB.h:60