Belle II Software development
TRGPoint2D Class Reference

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
 

Detailed Description

A class to represent a point in 2D.

Definition at line 27 of file Point2D.h.

Member Data Documentation

◆ _p

double _p[2]
private

vector

Definition at line 81 of file Point2D.h.


The documentation for this class was generated from the following files: