Phongo Clap RT  1.0
Simple Raytracing Renderer
Vec.h
Go to the documentation of this file.
1 #ifndef _VEC_H_
2 #define _VEC_H_
3 
7 
8 #include <ngl/Vec3.h>
9 #include "Ray.h"
10 
11 namespace geo {
12 //----------------------------------------------------------------------------------------------------------------------
15 //----------------------------------------------------------------------------------------------------------------------
16 typedef struct Point {
17  float x;
18  float y;
19  float z;
20 } Point;
21 //----------------------------------------------------------------------------------------------------------------------
24 //----------------------------------------------------------------------------------------------------------------------
25 class Vec : public ngl::Vec3
26 {
27 public:
28  Vec(geo::Point _A, geo::Point _B);
29  Vec(geo::Ray _r, float _t);
30 };
31 }
32 
33 #endif // Vec.h
Expanded class for the ngl::Vec3.
Definition: Vec.h:25
float y
Definition: Vec.h:18
Definition: Ray.h:17
struct geo::Point Point
float x
Definition: Vec.h:17
Vec(geo::Point _A, geo::Point _B)
Definition: Vec.cpp:10
float z
Definition: Vec.h:19
This class handles the implementation of ray: an object with an origin and a direction.
Definition: Plane.cpp:9
Holds 3D coordenates for a point in spance.
Definition: Vec.h:16