Go to the documentation of this file.
102 const double precision = std::numeric_limits<double>::min())
const
104 return (fabs(
getDX() - versor.
getDX()) <= precision &&
static const JVersor2D JVersor2X_t(1, 0)
unit x-vector
bool equals(const JVersor2D &versor, const double precision=std::numeric_limits< double >::min()) const
Check equality.
double getDot(const JVersor2D &versor) const
Get dot product.
double getPhi() const
Get phi angle.
Auxiliary classes and methods for 2D geometrical objects and operations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JVersor2D & normalise()
Normalise versor.
double getPerpDot(const JVersor2D &versor) const
Get perpendicular dot product.
JVersor2D(const double dx, const double dy)
Constructor.
static const JVersor2D JVersor2Y_t(0, 1)
unit y-vector
double getDX() const
Get x direction.
Data structure for normalised vector in two dimensions.
JVersor2D()
Default constructor.
double getDY() const
Get y direction.
JVersor2D & negate()
Negate versor.