jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | Public Attributes | List of all members
jau::math::Ray3F< T, > Struct Template Reference

Simple compound denoting a ray. More...

#include <vec3f.hpp>

Collaboration diagram for jau::math::Ray3F< T, >:

Public Member Functions

std::string toString () const noexcept
 

Public Attributes

Vector3F< T > dir
 Normalized direction vector of ray. More...
 
Point3F< T > orig
 Origin of Ray. More...
 

Detailed Description

template<typename T, std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
struct jau::math::Ray3F< T, >

Simple compound denoting a ray.

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 399 of file vec3f.hpp.

Member Function Documentation

◆ toString()

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
std::string jau::math::Ray3F< T, >::toString ( ) const
inlinenoexcept

Definition at line 406 of file vec3f.hpp.

Member Data Documentation

◆ orig

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
Point3F<T> jau::math::Ray3F< T, >::orig

Origin of Ray.

Definition at line 401 of file vec3f.hpp.

◆ dir

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
Vector3F<T> jau::math::Ray3F< T, >::dir

Normalized direction vector of ray.

Definition at line 404 of file vec3f.hpp.


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