jaulib v1.3.6
Jau Support Library (C++, Java, ..)
|
Simple compound denoting a ray. More...
#include <vec2f.hpp>
Public Types | |
typedef const value_type * | const_pointer |
typedef value_type * | pointer |
typedef Value_type | value_type |
Public Member Functions | |
std::string | toString () const noexcept |
Public Attributes | |
Vector2F< value_type > | dir |
Normalized direction vector of ray. | |
Point2F< value_type > | orig |
Origin of Ray. | |
Static Public Attributes | |
static constexpr const size_t | byte_size = components * sizeof(value_type) |
Size in bytes with value_alignment. | |
static constexpr const size_t | components = 4 |
Number of value_type components. | |
static constexpr int | value_alignment = sizeof(value_type) |
value alignment is sizeof(value_type) | |
Simple compound denoting a ray.
Component and overall alignment is as sizeof(value_type), i.e. packed.
A ray, also known as a half line, consists out of it's origin and direction. Hence it is bound to only the origin side, where the other end is +infinitive.
R(t) = R0 + Rd * t with R0 origin, Rd direction and t > 0.0
typedef Value_type jau::math::Ray2F< Value_type, >::value_type |
typedef value_type* jau::math::Ray2F< Value_type, >::pointer |
typedef const value_type* jau::math::Ray2F< Value_type, >::const_pointer |
|
inlinenoexcept |
|
staticconstexpr |
|
staticconstexpr |
Number of value_type components.
|
staticconstexpr |
Point2F<value_type> jau::math::Ray2F< Value_type, >::orig |
Vector2F<value_type> jau::math::Ray2F< Value_type, >::dir |