Thea

[Internal] Base class for straight lines in Ndimensional space, where N is any positive (nonzero) integer and T is a field. More...
#include <LineN.hpp>
Public Types  
typedef LineN< N, T >  LineT 
Ndimensional straight line. More...  
typedef Vector< N, T >  VectorT 
Ndimensional vector. More...  
Public Member Functions  
template<typename U >  
LineN< N, U >  cast () const 
Cast the line to a different scalar type. More...  
VectorT  closestPoint (VectorT const &p) const 
Get the point on the line closest to a given point. More...  
T  distance (VectorT const &p) const 
Get the distance of the line from a given point. More...  
T  distance (LineT const &other) const 
Get the distance of this line from another line. More...  
VectorT const &  getDirection () const 
Get the unit direction vector of the line. More...  
VectorT const &  getPoint () const 
Get a point on the line. More...  
T  squaredDistance (VectorT const &p) const 
Get the square of the distance of the line from a given point. More...  
T  squaredDistance (LineT const &other, VectorT *this_pt=nullptr, VectorT *other_pt=nullptr) const 
Get the point on this line and the point on another line closest to each other, and return the squared distance between them. More...  
std::string  toString () const 
Get a textual description of the line. More...  
Static Public Member Functions  
static LineT  fromPointAndDirection (VectorT const &point_, VectorT const &direction_, bool normalize=true) 
Construct a line from a point on it, and the direction vector of the line (need not be a unit vector). More...  
static LineT  fromTwoPoints (VectorT const &point1, VectorT const &point2) 
Construct a line from two points on it. More...  
[Internal] Base class for straight lines in Ndimensional space, where N is any positive (nonzero) integer and T is a field.
LineN<N, U> cast  (  )  const 
T distance  (  VectorT const &  p  )  const 
T distance  (  LineT const &  other  )  const 
VectorT const& getDirection  (  )  const 
T squaredDistance  (  VectorT const &  p  )  const 
std::string toString  (  )  const 