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