40 public JMath<JVersor3Z>
83 return static_cast<const JVersor3Z&
>(*this);
105 static_cast<JVersor3Z&
>(*this) = direction;
174 return sqrt(1.0 - v);
262 const double precision = std::numeric_limits<double>::min())
const
264 return (fabs(
getDX() - versor.
getDX()) <= precision &&
338 return in >> versor.
__dx >> versor.
__dy;
353 return out << format << versor.
getDX() <<
' ' << format << versor.
getDY();
366 return in >> versor.
__dx >> versor.
__dy;
379 return out << versor.
__dx << versor.
__dy;
JFormat_t & getFormat()
Get format for given type.
Base class for data structures with artithmetic capabilities.
Data structure for normalised vector in two dimensions.
Data structure for angles in three dimensions.
double getDY() const
Get y direction.
double getDZ() const
Get z direction.
double getDX() const
Get x direction.
Data structure for vector in three dimensions.
double getY() const
Get y position.
double getZ() const
Get z position.
double getX() const
Get x position.
Data structure for normalised vector in three dimensions.
double getDY() const
Get y direction.
double getDX() const
Get x direction.
double getDZ() const
Get z direction.
Data structure for normalised vector in positive z-direction.
double getDot(const JVersor3Z &dir) const
Get dot product.
JVersor3Z(const double dx, const double dy)
Constructor.
friend JWriter & operator<<(JWriter &out, const JVersor3Z &versor)
Write versor to output.
bool equals(const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const
Check equality.
double getDot(const JVector3D &pos) const
Get dot product.
double getDot(const JAngle3D &angle) const
Get dot product.
JVersor3Z & add(const JVersor3Z &value)
Addition operator.
double getDot(const JVersor3D &dir) const
Get dot product.
JVersor3Z()
Default constructor.
JVersor3Z & sub(const JVersor3Z &value)
Subtraction operator.
JVersor3Z & mul(const double value)
Multiplication operator.
JVersor3Z & getDirection()
Get direction.
friend std::ostream & operator<<(std::ostream &out, const JVersor3Z &versor)
Write versor to output.
JVersor3Z & negate()
Prefix unary minus.
void setDirection(const JVersor3Z &direction)
Set direction.
double getDZ() const
Get z direction.
const JVersor3Z & getDirection() const
Get direction.
JVersor3Z & div(const double value)
Division operator.
double getDY() const
Get y direction.
friend JReader & operator>>(JReader &in, JVersor3Z &versor)
Read versor from input.
JVersor3Z(const JVersor2D &dir)
Constructor.
friend std::istream & operator>>(std::istream &in, JVersor3Z &versor)
Read versor from input.
double getDX() const
Get x direction.
Interface for binary input.
Interface for binary output.
Auxiliary classes and methods for 3D geometrical objects and operations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary base class for aritmetic operations of derived class types.