21 namespace JGEOMETRY3D {}
22 namespace JPP {
using namespace JGEOMETRY3D; }
24 namespace JGEOMETRY3D {
81 return static_cast<const 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;
friend std::istream & operator>>(std::istream &in, JVersor3Z &versor)
Read versor from input.
double getDot(const JVersor3Z &dir) const
Get dot product.
Data structure for angles in three dimensions.
friend JWriter & operator<<(JWriter &out, const JVersor3Z &versor)
Write versor to output.
Interface for binary output.
JVersor3Z(const JVersor2D &dir)
Constructor.
Auxiliary base class for aritmetic operations of derived class types.
JVersor3Z & negate()
Prefix unary minus.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
JVersor3Z & sub(const JVersor3Z &value)
Subtraction operator.
double getDot(const JAngle3D &angle) const
Get dot product.
JVersor3Z & add(const JVersor3Z &value)
Addition operator.
double getDY() const
Get y direction.
JVersor3Z & mul(const double value)
Multiplication operator.
JVersor3Z()
Default constructor.
friend std::ostream & operator<<(std::ostream &out, const JVersor3Z &versor)
Write versor to output.
double getDot(const JVersor3D &dir) const
Get dot product.
Data structure for normalised vector in two dimensions.
Data structure for vector in three dimensions.
double getDY() const
Get y direction.
JVersor3Z & div(const double value)
Division operator.
double getDX() const
Get x direction.
double getY() const
Get y position.
void setDirection(const JVersor3Z &direction)
Set direction.
Interface for binary input.
JVersor3Z & getDirection()
Get direction.
JVersor3Z(const double dx, const double dy)
Constructor.
const JVersor3Z & getDirection() const
Get direction.
bool equals(const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const
Check equality.
double getDX() const
Get x direction.
double getX() const
Get x position.
Base class for data structures with artithmetic capabilities.
double getDot(const JVector3D &pos) const
Get dot product.
double getDZ() const
Get z direction.
friend JReader & operator>>(JReader &in, JVersor3Z &versor)
Read versor from input.
Data structure for normalised vector in three dimensions.
Data structure for normalised vector in positive z-direction.
double getZ() const
Get z position.
double getDZ() const
Get z direction.
double getDX() const
Get x direction.
double getDZ() const
Get z direction.
double getDY() const
Get y direction.