jaulib v1.4.1
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::math::Ray3F< Value_type > Class Template Reference

Simple compound denoting a ray. More...

#include <vec3f.hpp>

Inheritance diagram for jau::math::Ray3F< Value_type >:
Collaboration diagram for jau::math::Ray3F< Value_type >:

Public Types

typedef const value_typeconst_pointer
 
typedef value_typepointer
 
typedef Value_type value_type
 

Public Member Functions

std::string toString () const noexcept
 

Public Attributes

Vector3F< value_typedir
 Normalized direction vector of ray.
 
Point3F< value_typeorig
 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 = 6
 Number of value_type components.
 
static constexpr int value_alignment = sizeof(value_type)
 value alignment is sizeof(value_type)
 

Detailed Description

template<jau::req::packed_floating_point Value_type>
class jau::math::Ray3F< 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

Definition at line 457 of file vec3f.hpp.

Member Typedef Documentation

◆ value_type

template<jau::req::packed_floating_point Value_type>
typedef Value_type jau::math::Ray3F< Value_type >::value_type

Definition at line 459 of file vec3f.hpp.

◆ pointer

template<jau::req::packed_floating_point Value_type>
typedef value_type* jau::math::Ray3F< Value_type >::pointer

Definition at line 460 of file vec3f.hpp.

◆ const_pointer

template<jau::req::packed_floating_point Value_type>
typedef const value_type* jau::math::Ray3F< Value_type >::const_pointer

Definition at line 461 of file vec3f.hpp.

Member Function Documentation

◆ toString()

template<jau::req::packed_floating_point Value_type>
std::string jau::math::Ray3F< Value_type >::toString ( ) const
inlinenoexcept

Definition at line 478 of file vec3f.hpp.

Member Data Documentation

◆ value_alignment

template<jau::req::packed_floating_point Value_type>
int jau::math::Ray3F< Value_type >::value_alignment = sizeof(value_type)
staticconstexpr

value alignment is sizeof(value_type)

Definition at line 464 of file vec3f.hpp.

◆ components

template<jau::req::packed_floating_point Value_type>
const size_t jau::math::Ray3F< Value_type >::components = 6
staticconstexpr

Number of value_type components.

Definition at line 467 of file vec3f.hpp.

◆ byte_size

template<jau::req::packed_floating_point Value_type>
const size_t jau::math::Ray3F< Value_type >::byte_size = components * sizeof(value_type)
staticconstexpr

Size in bytes with value_alignment.

Definition at line 470 of file vec3f.hpp.

◆ orig

Origin of Ray.

Definition at line 473 of file vec3f.hpp.

◆ dir

Normalized direction vector of ray.

Definition at line 476 of file vec3f.hpp.


The documentation for this class was generated from the following file: