cgv
Loading...
Searching...
No Matches
ray.h
1#pragma once
2
3#include <cgv/math/vec.h>
4
5namespace cgv {
6 namespace media {
7
12template<class T>
13class ray
14{
15public:
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
A column vector class.
Definition vec.h:28
A simple ray data structure for arbitrary dimensions.
Definition ray.h:14
ray(const cgv::math::vec< T > &o, const cgv::math::vec< T > &d)
create a ray
Definition ray.h:24
the cgv namespace
Definition print.h:11