cgv
Loading...
Searching...
No Matches
cgv::media::ray< T > Class Template Reference

A simple ray data structure for arbitrary dimensions. More...

#include <ray.h>

Public Member Functions

 ray (const cgv::math::vec< T > &o, const cgv::math::vec< T > &d)
 create a ray
 

Public Attributes

cgv::math::vec< T > origin
 
cgv::math::vec< T > direction
 

Detailed Description

template<class T>
class cgv::media::ray< T >

A simple ray data structure for arbitrary dimensions.

The ray is defined by its origin point and a direction.

Definition at line 13 of file ray.h.

Constructor & Destructor Documentation

◆ ray() [1/2]

template<class T >
cgv::media::ray< T >::ray ( )
inline

Definition at line 19 of file ray.h.

◆ ray() [2/2]

template<class T >
cgv::media::ray< T >::ray ( const cgv::math::vec< T > &  o,
const cgv::math::vec< T > &  d 
)
inline

create a ray

Definition at line 24 of file ray.h.

Member Data Documentation

◆ direction

template<class T >
cgv::math::vec<T> cgv::media::ray< T >::direction

Definition at line 17 of file ray.h.

◆ origin

template<class T >
cgv::math::vec<T> cgv::media::ray< T >::origin

Definition at line 16 of file ray.h.


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