Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
shammath::Ray< T > Struct Template Reference

Ray representation for intersection testing. More...

#include <shammath/include/shammath/AABB.hpp>

+ Collaboration diagram for shammath::Ray< T >:

Public Types

using T_prop = shambase::VectorProperties< T >
 
using Tscal = typename T_prop::component_type
 

Public Member Functions

 Ray (T origin, T direction)
 Construct a normalized ray from origin and direction.
 

Public Attributes

origin
 
direction
 
inv_direction
 

Detailed Description

template<class T>
struct shammath::Ray< T >

Ray representation for intersection testing.

Template Parameters
TVector type for coordinates

Definition at line 34 of file AABB.hpp.

Member Typedef Documentation

◆ T_prop

template<class T >
using shammath::Ray< T >::T_prop = shambase::VectorProperties<T>

Definition at line 35 of file AABB.hpp.

◆ Tscal

template<class T >
using shammath::Ray< T >::Tscal = typename T_prop::component_type

Definition at line 36 of file AABB.hpp.

Constructor & Destructor Documentation

◆ Ray()

template<class T >
shammath::Ray< T >::Ray ( origin,
direction 
)
inline

Construct a normalized ray from origin and direction.

Parameters
originStarting point of the ray
directionDirection vector (will be normalized)

Definition at line 48 of file AABB.hpp.

Member Data Documentation

◆ direction

template<class T >
T shammath::Ray< T >::direction

Definition at line 39 of file AABB.hpp.

◆ inv_direction

template<class T >
T shammath::Ray< T >::inv_direction

Definition at line 40 of file AABB.hpp.

◆ origin

template<class T >
T shammath::Ray< T >::origin

Definition at line 38 of file AABB.hpp.


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