Phongo Clap RT
1.0
Simple Raytracing Renderer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
FinalSubmission
include
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
geo::Vec
Expanded class for the ngl::Vec3.
Definition:
Vec.h:25
geo::Point::y
float y
Definition:
Vec.h:18
geo::Ray
Definition:
Ray.h:17
geo::Point
struct geo::Point Point
geo::Point::x
float x
Definition:
Vec.h:17
geo::Vec::Vec
Vec(geo::Point _A, geo::Point _B)
Definition:
Vec.cpp:10
geo::Point::z
float z
Definition:
Vec.h:19
Ray.h
This class handles the implementation of ray: an object with an origin and a direction.
geo
Definition:
Plane.cpp:9
geo::Point
Holds 3D coordenates for a point in spance.
Definition:
Vec.h:16
Generated by
1.8.9.1