Harlinn.Windows 0.1
|
An infinite line passing through origin<c> with direction given by the unit vector
More...direction<c>.
#include <Line.h>
Public Types | |
using | Point = Math::Point<T, N> |
using | Vector = Math::Vector<T, N> |
using | Simd = LineSimd<T, N> |
using | value_type = T |
using | PointDistanceResult = typename Simd::PointDistanceResult |
using | LineDistanceResult = typename Simd::LineDistanceResult |
Public Member Functions | |
Line () noexcept=default | |
Line (const Point &o, const Vector &d) noexcept | |
Line (const Point &p1, const Point &p2) noexcept | |
Simd | ToSimd () const noexcept |
template<PointOrPointSimdType PT> requires (PT::Size == N) | |
PointDistanceResult | Distance (const PT &point) const noexcept |
Retrieves the closest point and distance to point on the line. | |
LineDistanceResult | Distance (const Simd &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. | |
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::Line< T, N >::LineDistanceResult = typename Simd::LineDistanceResult |
using Harlinn::Math::Line< T, N >::Point = Math::Point<T, N> |
using Harlinn::Math::Line< T, N >::PointDistanceResult = typename Simd::PointDistanceResult |
using Harlinn::Math::Line< T, N >::Simd = LineSimd<T, N> |
using Harlinn::Math::Line< T, N >::value_type = T |
using Harlinn::Math::Line< T, N >::Vector = Math::Vector<T, N> |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Retrieves the closest points and shortest distance between two lines.
|
inlinenoexcept |
Retrieves the closest point and distance to point
on the line.
|
inlinenoexcept |
Retrieves the closest points and shortest distance between two lines.
|
inlinenoexcept |
Vector Harlinn::Math::Line< T, N >::direction |
Unit length direction vector.
Point Harlinn::Math::Line< T, N >::origin |
Origin point.