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 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. |
using geom::primitives::ray< T, N >::vector_type = math::vector<T, N> |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
vector_type geom::primitives::ray< T, N >::direction |
vector_type geom::primitives::ray< T, N >::origin |