15 namespace JGEOMETRY3D {}
 
   16 namespace JPP { 
using namespace JGEOMETRY3D; }
 
   18 namespace JGEOMETRY3D {
 
  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;
 
Interface for binary output. 
 
JVector3D & mul(const double factor)
Scale vector. 
 
double getLength() const 
Get length. 
 
double getLengthSquared() const 
Get length squared. 
 
JSegment3D()
Default constructor. 
 
friend JWriter & operator<<(JWriter &out, const JSegment3D &segment)
Write segment to output. 
 
double getDot(const JSegment3D &segment) const 
Get dot product. 
 
double getDistanceSquared(const JVector3D &point, const double precision=1.0e-8) const 
Get squared of distance to point. 
 
std::pair< JPosition3D, JPosition3D > JSegment3D_t
Type definition of line segment in two dimensions. 
 
JVector3D & sub(const JVector3D &vector)
Subtract vector. 
 
Data structure for vector in three dimensions. 
 
friend JReader & operator>>(JReader &in, JSegment3D &segment)
Read segment from input. 
 
Interface for binary input. 
 
Line segment in two dimensions. 
 
double getLengthSquared() const 
Get length squared. 
 
double getDistance(const JVector3D &point) const 
Get distance to point. 
 
double getDot(const JVector3D &vector) const 
Get dot product. 
 
JSegment3D(const JVector3D &A, const JVector3D &B)
Constructor.