Math::VectorPairBase internal struct members

VectorPairBase()  

No documentation available

VectorPairBase(const Vector<N> &a, const Vector<N> &b)  

No documentation available

Vector<N> & direction()  

Get reference to second vector

const Vector<N> & direction() const  

Get reference to second vector

Vector<N> ln_pt_clst_pt(const Vector<N> &point) const  

Consider the VectorPair as a line with origin and direction vectors and find the closest point on this line to a point.

The return value is position of the closest point on the line.

See also ln_pt_clst_pt_scale function.

double ln_pt_clst_pt_scale(const Vector<N> &point) const  

Consider the VectorPair as a line with origin and direction vectors and find the closest point on this line to an other line.

The return value is scale factor of the direction vector from origin.

See also ln_pt_clst_pt function.

Vector<N> & normal()  

Get reference to second vector

const Vector<N> & normal() const  

Get reference to second vector

VectorPairBase operator*(double factor)  

No documentation available

const VectorPairBase & operator+=(const VectorPairBase &p)  

No documentation available

const Vector<N> & operator[](int n) const  

Get a reference to a vector stored in the pair

Vector<N> & operator[](int n)  

Get a reference to a vector stored in the pair

Vector<N> & origin()  

Get reference to first vector

const Vector<N> & origin() const  

Get reference to first vector

Vector<N> seg_pt_clst_pt(const Vector<N> &point) const  

Consider the VectorPair as a segment with two point vectors and find the closest point on this segment to a point in space.

The return value is position of the closest point on segment.

See also seg_pt_clst_pt_scale function.

double seg_pt_clst_pt_scale(const Vector<N> &point) const  

Consider the VectorPair as a segment with two point vectors and find the closest point on this segment to a point in space.

The return value is position on segment, value is in [0, 1] range if on segment.

See also seg_pt_clst_pt function.

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:24 2012 using MkDoc