#include <RecoTracker/RoadSearchSeedFinder/interface/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().
00471 { 00472 theX_ = std::fabs(point1.x()-point2.x()); 00473 theY_ = std::fabs(point1.y()-point2.y()); 00474 //If the line is pointing backwards in x 00475 if ((point1.perp() >= point2.perp() && 00476 point1.x() < point2.x()) || 00477 (point2.perp() >= point1.perp() && 00478 point2.x() < point1.x())) 00479 { 00480 theX_ = -1.*theX_; 00481 } 00482 //If the line is pointing backwards in y 00483 if ((point1.perp() >= point2.perp() && 00484 point1.y() < point2.y()) || 00485 (point2.perp() >= point1.perp() && 00486 point2.y() < point1.y())) 00487 { 00488 theY_ = -1.*theY_; 00489 } 00490 }
LineXY::~LineXY | ( | ) |
double LineXY::Phi | ( | ) | const [inline] |
double LineXY::theX_ [private] |
double LineXY::theY_ [private] |