Math::VectorPairBase<N> internal struct members
No documentation available
No documentation available
Vector<N> & direction()
Get reference to second vector
const Vector<N> & direction() const
Get reference to second vector
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
No documentation available
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
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.