|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Generic ray with an origin and direction in N-dimensional space. More...
#include <GREM/core/geometry.hpp>
Public Types | |
| using | Component = T |
| Scalar coordinate component type. | |
Static Public Member Functions | |
| static constexpr Optional< Ray > | between (Point< N, T > origin, Point< N, T > destination) |
| Create a ray between two points. | |
Public Attributes | |
| Point< N, T > | origin |
| Starting position of the ray. | |
| vec< N, T > | direction |
| Unit vector pointing in the direction of the ray. | |
| T | maxDistance = Limits<T>::MAX |
| Maximum hit distance of the ray. | |
| vec< N, T > | directionInverse = vec<N, T>{T{1}} / direction |
| Component-wise reciprocal of the ray direction. | |
Static Public Attributes | |
| static constexpr size_t | RANK = N |
| Number of dimensions of the vector space. | |
Generic ray with an origin and direction in N-dimensional space.
| N | number of vector dimensions. |
| T | scalar coordinate component type. |
| using grem::Ray< N, T >::Component = T |
Scalar coordinate component type.
|
inlinestaticnodiscardconstexpr |
Create a ray between two points.
| origin | starting point of the ray. |
| destination | end point of the ray. |
|
staticconstexpr |
Number of dimensions of the vector space.
Unit vector pointing in the direction of the ray.
Maximum hit distance of the ray.
| vec<N, T> grem::Ray< N, T >::directionInverse = vec<N, T>{T{1}} / direction |
Component-wise reciprocal of the ray direction.