#include <RoadSearchCircleSeed.h>
Public Member Functions | |
LineXY (GlobalPoint point1, GlobalPoint point2) | |
double | Phi () const |
~LineXY () | |
Private Attributes | |
double | theX_ |
double | theY_ |
Definition at line 136 of file RoadSearchCircleSeed.h.
LineXY::LineXY | ( | GlobalPoint | point1, |
GlobalPoint | point2 | ||
) |
Definition at line 470 of file RoadSearchCircleSeed.cc.
References PV3DBase< T, PVType, FrameType >::perp(), theX_, theY_, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
{ theX_ = std::fabs(point1.x()-point2.x()); theY_ = std::fabs(point1.y()-point2.y()); //If the line is pointing backwards in x if ((point1.perp() >= point2.perp() && point1.x() < point2.x()) || (point2.perp() >= point1.perp() && point2.x() < point1.x())) { theX_ = -1.*theX_; } //If the line is pointing backwards in y if ((point1.perp() >= point2.perp() && point1.y() < point2.y()) || (point2.perp() >= point1.perp() && point2.y() < point1.y())) { theY_ = -1.*theY_; } }
LineXY::~LineXY | ( | ) |
Definition at line 495 of file RoadSearchCircleSeed.cc.
{ }
double LineXY::Phi | ( | ) | const [inline] |
double LineXY::theX_ [private] |
Definition at line 144 of file RoadSearchCircleSeed.h.
double LineXY::theY_ [private] |
Definition at line 145 of file RoadSearchCircleSeed.h.