|
The blo Library
|
Parametric form of n-dimensional line. More...
#include <ParametricLine.h>
Public Member Functions | |
| ParametricLine ()=default | |
| Default constructor. | |
| ParametricLine (const Point< T, N > &X0, const SmallMatrix< T, N, 1 > &v) | |
| Constructs and sets parametric form of line. | |
| ParametricLine (const Point< T, N > &X0, const Point< T, N > &X1) | |
| Constructs and sets parametric form of line. | |
| ParametricLine (const ParametricLine &rhs)=default | |
| Copy constructor. | |
| ~ParametricLine ()=default | |
| Destructor. | |
| ParametricLine & | operator= (const ParametricLine &rhs)=default |
| Assignment operator. | |
| void | set (const Point< T, N > &X0, const SmallMatrix< T, N, 1 > &v) |
| Sets parametric form of line. | |
| void | set (const Point< T, N > &X0, const Point< T, N > &X1) |
| Sets parametric form of line. | |
| const Point< T, N > | point () const |
| Retrieves point the line passes through. | |
| const SmallMatrix< T, N, 1 > | vector () const |
| Retrieves vector parallel to the line. | |
| const Point< T, N > | pointOnLine (const T &lambda) const |
| Calculates a parameterized point on the line. | |
| const T | parameterOfPointOnLine (const Point< T, N > &X) const |
| Calculates the parameter of a point on the line. | |
Parametric form of n-dimensional line.
| T | Data type. |
| N | Number of dimensions. |
|
default |
Default constructor.
| blo::ParametricLine< T, N >::ParametricLine | ( | const Point< T, N > & | X0, |
| const SmallMatrix< T, N, 1 > & | v | ||
| ) |
Constructs and sets parametric form of line.
X = X0 + lambda * v
| X0 | The point the line passes through. |
| v | The vector parallel to the line. |
| blo::ParametricLine< T, N >::ParametricLine | ( | const Point< T, N > & | X0, |
| const Point< T, N > & | X1 | ||
| ) |
Constructs and sets parametric form of line.
X = X0 + lambda * v, where v = X1 - X0
| X0 | The first point the line passes through. |
| X1 | The second point the line passes through. |
|
default |
Copy constructor.
|
default |
Destructor.
|
default |
Assignment operator.
| const T blo::ParametricLine< T, N >::parameterOfPointOnLine | ( | const Point< T, N > & | X | ) | const |
Calculates the parameter of a point on the line.
X = X0 + lambda * v
| X | The point on the line. |
| const Point< T, N > blo::ParametricLine< T, N >::point | ( | ) | const |
Retrieves point the line passes through.
X = X0 + lambda * v
| const Point< T, N > blo::ParametricLine< T, N >::pointOnLine | ( | const T & | lambda | ) | const |
Calculates a parameterized point on the line.
X = X0 + lambda * v
| lambda | The parameter. |
| void blo::ParametricLine< T, N >::set | ( | const Point< T, N > & | X0, |
| const Point< T, N > & | X1 | ||
| ) |
Sets parametric form of line.
X = X0 + lambda * v, where v = X1 - X0
| X0 | The first point the line passes through. |
| X1 | The second point the line passes through. |
| void blo::ParametricLine< T, N >::set | ( | const Point< T, N > & | X0, |
| const SmallMatrix< T, N, 1 > & | v | ||
| ) |
Sets parametric form of line.
X = X0 + lambda * v
| X0 | The point the line passes through. |
| v | The vector parallel to the line. |
| const SmallMatrix< T, N, 1 > blo::ParametricLine< T, N >::vector | ( | ) | const |
Retrieves vector parallel to the line.
X = X0 + lambda * v