Belle II Software development
|
A class to represent a point in 2D. More...
#include <Point2D.h>
Public Member Functions | |
TRGPoint2D () | |
Constructor. | |
TRGPoint2D (double, double) | |
Constructor. | |
TRGPoint2D (const HepGeom::Point3D< double > &) | |
Constructor. | |
TRGPoint2D (const Vector3D &) | |
Constructor. | |
TRGPoint2D (const CLHEP::Hep3Vector &) | |
Constructor. | |
virtual | ~TRGPoint2D () |
Destructor. | |
double | x (void) const |
x of the point | |
double | y (void) const |
y of the point | |
double | mag (void) const |
magnitude of the point | |
double | mag2 (void) const |
magnitude square of the point | |
double | phi (void) const |
phi of the point | |
double | x (double) |
x of the point | |
double | y (double) |
y of the point | |
double | dot (const TRGPoint2D &) const |
inner product | |
double | cross (const TRGPoint2D &) const |
outer product | |
TRGPoint2D | unit (void) const |
unit vector | |
TRGPoint2D | operator+ (const TRGPoint2D &) const |
TRGPoint2D | operator- (const TRGPoint2D &) const |
TRGPoint2D | operator- () const |
bool | operator== (const TRGPoint2D &) const |
equal operator | |
Private Attributes | |
double | _p [2] |
vector | |