# 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.

## 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.

## 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.