cgv
ray.h
1 #pragma once
2 
3 #include <cgv/math/vec.h>
4 
5 namespace cgv {
6  namespace media {
7 
12 template<class T>
13 class ray
14 {
15 public:
16  cgv::math::vec<T> origin;
17  cgv::math::vec<T> direction;
18 
19  ray()
20  {
21  }
22 
25  {
26  origin=o;
27  direction=d;
28  }
29 };
30 
31  }
32 }
33 
cgv::math::vec
A column vector class.
Definition: fvec.h:13
cgv::media::ray::ray
ray(const cgv::math::vec< T > &o, const cgv::math::vec< T > &d)
create a ray
Definition: ray.h:24
cgv::media::ray
Definition: ray.h:14
cgv
the cgv namespace
Definition: vr_calib.cxx:9