Go to the documentation of this file.
81 return static_cast<const JVersor3Z&>(*
this);
92 return static_cast<JVersor3Z&>(*
this);
103 static_cast<JVersor3Z&>(*
this) = direction;
172 return sqrt(1.0 -
v);
260 const double precision = std::numeric_limits<double>::min())
const
262 return (fabs(
getDX() - versor.
getDX()) <= precision &&
336 return in >> versor.
__dx >> versor.
__dy;
349 return out << versor.
getDX() <<
' ' << versor.
getDY();
362 return in >> versor.
__dx >> versor.
__dy;
375 return out << versor.
__dx << versor.
__dy;
double getDZ() const
Get z direction.
JVersor3Z & negate()
Prefix unary minus.
Interface for binary input.
JVersor3Z & div(const double value)
Division operator.
bool equals(const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const
Check equality.
friend std::istream & operator>>(std::istream &in, JVersor3Z &versor)
Read versor from input.
Data structure for normalised vector in positive z-direction.
void setDirection(const JVersor3Z &direction)
Set direction.
double getZ() const
Get z position.
JVersor3Z & add(const JVersor3Z &value)
Addition operator.
double getDot(const JVersor3Z &dir) const
Get dot product.
JVersor3Z & mul(const double value)
Multiplication operator.
JVersor3Z()
Default constructor.
Data structure for normalised vector in three dimensions.
friend JReader & operator>>(JReader &in, JVersor3Z &versor)
Read versor from input.
Auxiliary base class for aritmetic operations of derived class types.
JVersor3Z(const double dx, const double dy)
Constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Data structure for vector in three dimensions.
double getDot(const JVector3D &pos) const
Get dot product.
Interface for binary output.
double getDot(const JVersor3D &dir) const
Get dot product.
double getDX() const
Get x direction.
double getDX() const
Get x direction.
JVersor3Z & sub(const JVersor3Z &value)
Subtraction operator.
double getDY() const
Get y direction.
friend JWriter & operator<<(JWriter &out, const JVersor3Z &versor)
Write versor to output.
Data structure for angles in three dimensions.
double getDZ() const
Get z direction.
const JVersor3Z & getDirection() const
Get direction.
double getY() const
Get y position.
double getDY() const
Get y direction.
double getDY() const
Get y direction.
Auxiliary classes and methods for 3D geometrical objects and operations.
double getDot(const JAngle3D &angle) const
Get dot product.
JVersor3Z(const JVersor2D &dir)
Constructor.
Data structure for normalised vector in two dimensions.
double getX() const
Get x position.
JVersor3Z & getDirection()
Get direction.
friend std::ostream & operator<<(std::ostream &out, const JVersor3Z &versor)
Write versor to output.
double getDZ() const
Get z direction.
double getDX() const
Get x direction.