Antkeeper
0.0.1
|
Half of a line proceeding from an initial point. More...
#include <ray.hpp>
Public Types | |
using | vector_type = math::vector< T, N > |
Vector type. More... | |
Public Member Functions | |
constexpr vector_type | extrapolate (T distance) const noexcept |
Extrapolates from the ray origin along the ray direction vector. More... | |
constexpr vector_type | closest_point (const vector_type &point) const noexcept |
Calculates the closest point on the ray to a point. More... | |
constexpr T | sqr_distance (const vector_type &point) const noexcept |
Calculates the square distance from the ray to a point. More... | |
T | distance (const vector_type &point) const noexcept |
Calculates the distance from the ray to a point. More... | |
Public Attributes | |
vector_type | origin |
Ray origin position. More... | |
vector_type | direction |
Ray direction vector. More... | |
Half of a line proceeding from an initial point.
T | Real type. |
N | Number of dimensions. |
Definition at line 37 of file primitives/ray.hpp.
using geom::primitive::ray< T, N >::vector_type = math::vector<T, N> |
Vector type.
Definition at line 40 of file primitives/ray.hpp.
|
inlineconstexprnoexcept |
Calculates the closest point on the ray to a point.
point | Input point. |
point
. Definition at line 67 of file primitives/ray.hpp.
|
inlinenoexcept |
Calculates the distance from the ray to a point.
point | Input point. |
point
. Definition at line 91 of file primitives/ray.hpp.
|
inlineconstexprnoexcept |
Extrapolates from the ray origin along the ray direction vector.
distance | Signed extrapolation distance. |
Definition at line 55 of file primitives/ray.hpp.
|
inlineconstexprnoexcept |
Calculates the square distance from the ray to a point.
point | Input point. |
point
. Definition at line 79 of file primitives/ray.hpp.
vector_type geom::primitive::ray< T, N >::direction |
Ray direction vector.
Definition at line 46 of file primitives/ray.hpp.
vector_type geom::primitive::ray< T, N >::origin |
Ray origin position.
Definition at line 43 of file primitives/ray.hpp.