35     public JMath<JVector3D>
 
  222                 const double     precision = std::numeric_limits<double>::min())
 const 
  224       return (fabs(
getX() - vector.
getX()) <= precision &&
 
  225               fabs(
getY() - vector.
getY()) <= precision &&
 
  226               fabs(
getZ() - vector.
getZ()) <= precision);
 
  260       return JVector3D(pos).sub(*this).getLengthSquared();
 
Base class for data structures with artithmetic capabilities.
 
Data structure for vector in two dimensions.
 
Data structure for vector in three dimensions.
 
JVector3D & add(const JVector3D &vector)
Add vector.
 
double getY() const
Get y position.
 
double getLength() const
Get length.
 
double getLengthSquared() const
Get length squared.
 
double getDistance(const JVector3D &pos) const
Get distance to point.
 
double getZ() const
Get z position.
 
JVector3D & div(const double factor)
Scale vector.
 
JVector3D()
Default constructor.
 
JVector3D & sub(const JVector3D &vector)
Subtract vector.
 
bool equals(const JVector3D &vector, const double precision=std::numeric_limits< double >::min()) const
Check equality.
 
JVector3D & negate()
Negate vector.
 
double getDot(const JVector3D &vector) const
Get dot product.
 
JVector3D(const double x, const double y, const double z)
Constructor.
 
JVector3D(const JVector2D &vector, const double z)
Constructor.
 
JVector3D & mul(const double factor)
Scale vector.
 
JVector3D & getCross(const JVector3D &first, const JVector3D &second)
Get cross product.
 
double getX() const
Get x position.
 
double getDistanceSquared(const JVector3D &pos) const
Get squared of distance to point.
 
JVector3D & transform(const JMatrix3D &T)
Transform.
 
void transform(double &__x, double &__y, double &__z) const
Transform.
 
std::pair< double, double > JRangeX
Type definition of range along x-axis.
 
std::pair< double, double > JRangeY
Type definition of range along y-axis.
 
Auxiliary classes and methods for 3D geometrical objects and operations.
 
std::pair< double, double > JRangeZ
< Type definition of range along y-axis.
 
static const JVector3D JVector3X_t(1, 0, 0)
unit x-vector
 
static const JVector3D JVector3Y_t(0, 1, 0)
unit y-vector
 
static const JVector3D JVector3Z_t(0, 0, 1)
unit z-vector
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary base class for aritmetic operations of derived class types.