Euphoria
eu::Ray2f Struct Reference

#include <ray.h>

Public Member Functions

 Ray2f (const vec2f &p, const vec2f &d)
 
vec2f get_position (float d) const
 

Static Public Member Functions

static Ray2f from_to (const vec2f &from, const vec2f &to)
 
static Ray2f from_direction (const vec2f &direction, const vec2f &pos=zero2f)
 

Public Attributes

vec2f position
 
vec2f direction
 

Detailed Description

Definition at line 23 of file ray.h.

Constructor & Destructor Documentation

◆ Ray2f()

eu::Ray2f::Ray2f ( const vec2f p,
const vec2f d 
)

Definition at line 69 of file ray.cc.

Member Function Documentation

◆ from_direction()

Ray2f eu::Ray2f::from_direction ( const vec2f direction,
const vec2f pos = zero2f 
)
static

Definition at line 49 of file ray.cc.

◆ from_to()

Ray2f eu::Ray2f::from_to ( const vec2f from,
const vec2f to 
)
static

Definition at line 56 of file ray.cc.

◆ get_position()

vec2f eu::Ray2f::get_position ( float  d) const

Definition at line 63 of file ray.cc.

Member Data Documentation

◆ direction

vec2f eu::Ray2f::direction

Definition at line 26 of file ray.h.

◆ position

vec2f eu::Ray2f::position

Definition at line 25 of file ray.h.


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