Euphoria
eu::Ray3f Struct Reference

#include <ray.h>

Public Member Functions

 Ray3f (const vec3f &from, const vec3f &dir)
 
vec3f get_point (float at) const
 
UnitRay3f get_normalized () const
 

Static Public Member Functions

static Ray3f from_to (const vec3f &from, const vec3f &to)
 
static Ray3f from_direction (const vec3f &dir)
 

Public Attributes

vec3f from
 
vec3f dir
 

Detailed Description

Definition at line 36 of file ray.h.

Constructor & Destructor Documentation

◆ Ray3f()

eu::Ray3f::Ray3f ( const vec3f from,
const vec3f dir 
)

Definition at line 76 of file ray.cc.

Member Function Documentation

◆ from_direction()

Ray3f eu::Ray3f::from_direction ( const vec3f dir)
static

Definition at line 91 of file ray.cc.

◆ from_to()

Ray3f eu::Ray3f::from_to ( const vec3f from,
const vec3f to 
)
static

Definition at line 84 of file ray.cc.

◆ get_normalized()

UnitRay3f eu::Ray3f::get_normalized ( ) const

Definition at line 104 of file ray.cc.

◆ get_point()

vec3f eu::Ray3f::get_point ( float  at) const

Definition at line 98 of file ray.cc.

Member Data Documentation

◆ dir

vec3f eu::Ray3f::dir

Definition at line 39 of file ray.h.

◆ from

vec3f eu::Ray3f::from

Definition at line 38 of file ray.h.


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