ray-tracer

default description
git clone _git@git.tontus.eu/ray-tracer.git
Log | Files | Refs

ray.h (209B)


      1 #ifndef RAY_H
      2 #define RAY_H
      3 
      4 #include "vec3.h"
      5 
      6 typedef struct {
      7 	point3 origin;
      8 	vec3 direction;
      9 } ray;
     10 
     11 point3 ray_get_origin(ray);
     12 vec3 ray_get_direction(ray);
     13 point3 ray_at(ray, double);
     14 
     15 #endif // !RAY_H