11 namespace JGEOMETRY2D {}
12 namespace JPP {
using namespace JGEOMETRY2D; }
14 namespace JGEOMETRY2D {
double getDot(const JVersor2D &versor) const
Get dot product.
JVersor2D & negate()
Negate versor.
static const JVersor2D JVersor2X_t(1, 0)
unit x-vector
double getDX() const
Get x direction.
double getPhi() const
Get phi angle.
Data structure for normalised vector in two dimensions.
JVersor2D & normalise()
Normalise versor.
JVersor2D()
Default constructor.
JVersor2D(const double dx, const double dy)
Constructor.
double getPerpDot(const JVersor2D &versor) const
Get perpendicular dot product.
bool equals(const JVersor2D &versor) const
Check equality.
double getDY() const
Get y direction.
static const JVersor2D JVersor2Y_t(0, 1)
unit y-vector