12 namespace JGEOMETRY2D {}
 
   13 namespace JPP { 
using namespace JGEOMETRY2D; }
 
   15 namespace JGEOMETRY2D {
 
  103                 const double     precision = std::numeric_limits<double>::min())
 const 
  105       return (fabs(
getDX() - versor.
getDX()) <= precision &&
 
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. 
 
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. 
 
double getDY() const 
Get y direction. 
 
static const JVersor2D JVersor2Y_t(0, 1)
unit y-vector