|
Harlinn.Windows 0.1
|
An infinite line passing through origin<c> with direction given by the unit vector
More...direction<c>.
#include <Line.h>
Classes | |
| class | LineDistanceResult |
| Calculates the closest points and shortest distance between two lines. More... | |
| class | PointDistanceResult |
| Calculates the distance and the closest point on a line from a point. More... | |
Public Types | |
| using | Point = typename Math::Point<T, N>::Simd |
| using | Vector = Math::Vector<T, N>::Simd |
| using | Line = Math::Line<T, N> |
| using | value_type = T |
Public Member Functions | |
| LineSimd () noexcept=default | |
| LineSimd (const Point &o, const Vector &d) noexcept | |
| LineSimd (const Point &p1, const Point &p2) noexcept | |
| LineSimd (const Line &l) noexcept | |
| PointDistanceResult | Distance (const Point &point) const noexcept |
Retrieves the closest point and distance to point on the line. | |
| LineDistanceResult | Distance (const LineSimd &other) const noexcept |
| Retrieves the closest points and shortest distance between two lines. | |
| LineDistanceResult | Distance (const Line &other) const noexcept |
| Retrieves the closest points and shortest distance between two lines. | |
Public Attributes | |
| Point | origin |
| Origin point. | |
| Vector | direction |
| Unit length direction vector. | |
Static Public Attributes | |
| static constexpr value_type | Zero = static_cast< value_type >( 0 ) |
An infinite line passing through origin<c> with direction given by the unit vector direction<c>.
| T | double or float |
| N | Dimension count. |
| using Harlinn::Math::LineSimd< T, N >::Line = Math::Line<T, N> |
| using Harlinn::Math::LineSimd< T, N >::Point = typename Math::Point<T, N>::Simd |
| using Harlinn::Math::LineSimd< T, N >::value_type = T |
| using Harlinn::Math::LineSimd< T, N >::Vector = Math::Vector<T, N>::Simd |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Retrieves the closest points and shortest distance between two lines.
|
inlinenoexcept |
Retrieves the closest points and shortest distance between two lines.
|
inlinenoexcept |
Retrieves the closest point and distance to point on the line.
| Vector Harlinn::Math::LineSimd< T, N >::direction |
Unit length direction vector.
| Point Harlinn::Math::LineSimd< T, N >::origin |
Origin point.
|
staticconstexpr |