line3d Class Template Reference

#include <line3d.h>

template<class T>
class irr::core::line3d< T >

Public Member Functions

Data Fields


Constructor & Destructor Documentation

line3d (  )  [inline]

line3d ( xa,
ya,
za,
xb,
yb,
zb 
) [inline]

line3d ( const vector3d< T > &  start,
const vector3d< T > &  end 
) [inline]

line3d ( const line3d< T > &  other  )  [inline]


Member Function Documentation

vector3d<T> getClosestPoint ( const vector3d< T > &  point  )  const [inline]

vector3d<T> getHorizontalAngle (  )  [inline]

bool getIntersectionWithSphere ( vector3d< T >  sorigin,
sradius,
f64 outdistance 
) [inline]

Returns if the line intersects with a shpere

Parameters:
sorigin,: Origin of the shpere.
sradius,: Radius if the sphere.
outdistance,: Distance to the first intersection point
Returns:
Returns true if there is an intersection. If there is one, the distance to the first intersection point is stored in outdistance.

f64 getLength (  )  const [inline]

Returns length of line

Returns:
Returns length of line.

f64 getLengthSQ (  )  const [inline]

Returns sqared length of line

Returns:
Returns sqared length of line.

vector3d<T> getMiddle (  )  const [inline]

vector3d<T> getVector (  )  const [inline]

bool isPointBetweenStartAndEnd ( const vector3d< T > &  point  )  const [inline]

Returns if the overgiven point is between start and end of the line. Assumes that the point is already somewhere on the line.

bool operator!= ( const line3d< T > &  other  )  const [inline]

line3d<T> operator+ ( const vector3d< T > &  point  )  const [inline]

line3d<T>& operator+= ( const vector3d< T > &  point  )  [inline]

line3d<T> operator- ( const vector3d< T > &  point  )  const [inline]

line3d<T>& operator-= ( const vector3d< T > &  point  )  [inline]

bool operator== ( const line3d< T > &  other  )  const [inline]

void setLine ( const line3d< T > &  line  )  [inline]

void setLine ( const vector3d< T > &  nstart,
const vector3d< T > &  nend 
) [inline]

void setLine ( const T &  xa,
const T &  ya,
const T &  za,
const T &  xb,
const T &  yb,
const T &  zb 
) [inline]


Field Documentation

vector3d<T> end

vector3d<T> start


Generated on Fri Apr 27 14:47:02 2007 for IrrSpintz by  doxygen 1.5.1-p1