Go to the documentation of this file.
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;
JSegment3D(const JVector3D &A, const JVector3D &B)
Constructor.
Interface for binary input.
double getDot(const JSegment3D &segment) const
Get dot product.
double getLengthSquared() const
Get length squared.
friend JWriter & operator<<(JWriter &out, const JSegment3D &segment)
Write segment to output.
double getLength() const
Get length.
JVector3D & mul(const double factor)
Scale vector.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Data structure for vector in three dimensions.
Interface for binary output.
Line segment in two dimensions.
std::pair< JPosition3D, JPosition3D > JSegment3D_t
Type definition of line segment in two dimensions.
double getLengthSquared() const
Get length squared.
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.
double getDistance(const JVector3D &point) const
Get distance to point.
JSegment3D()
Default constructor.
double getDot(const JVector3D &vector) const
Get dot product.
Auxiliary classes and methods for 3D geometrical objects and operations.
JVector3D & sub(const JVector3D &vector)
Subtract vector.