112         return this->first.getDistanceSquared(point);
 
  137       return JVector3D(this->second - this->first).
getDot(segment.second - segment.first);
 
  151       in >> segment.second;
 
  166       out << segment.first;
 
  167       out << segment.second;
 
Line segment in two dimensions.
 
double getDistanceSquared(const JVector3D &point, const double precision=1.0e-8) const
Get squared of distance to point.
 
friend JReader & operator>>(JReader &in, JSegment3D &segment)
Read segment from input.
 
JSegment3D(const JVector3D &A, const JVector3D &B)
Constructor.
 
double getDot(const JSegment3D &segment) const
Get dot product.
 
JSegment3D()
Default constructor.
 
friend JWriter & operator<<(JWriter &out, const JSegment3D &segment)
Write segment to output.
 
double getLength() const
Get length.
 
double getDistance(const JVector3D &point) const
Get distance to point.
 
double getLengthSquared() const
Get length squared.
 
Data structure for vector in three dimensions.
 
double getLengthSquared() const
Get length squared.
 
JVector3D & sub(const JVector3D &vector)
Subtract vector.
 
double getDot(const JVector3D &vector) const
Get dot product.
 
JVector3D & mul(const double factor)
Scale vector.
 
Interface for binary input.
 
Interface for binary output.
 
Auxiliary classes and methods for 3D geometrical objects and operations.
 
std::pair< JPosition3D, JPosition3D > JSegment3D_t
Type definition of line segment in two dimensions.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).