Phongo Clap RT  1.0
Simple Raytracing Renderer
Public Member Functions | List of all members
geo::Vec Class Reference

Expanded class for the ngl::Vec3. More...

#include <Vec.h>

Inheritance diagram for geo::Vec:
Inheritance graph
Collaboration diagram for geo::Vec:
Collaboration graph

Public Member Functions

 Vec (geo::Point _A, geo::Point _B)
 
 Vec (geo::Ray _r, float _t)
 

Detailed Description

Expanded class for the ngl::Vec3.

Definition at line 25 of file Vec.h.

Constructor & Destructor Documentation

geo::Vec::Vec ( geo::Point  _A,
geo::Point  _B 
)

Definition at line 10 of file Vec.cpp.

References geo::Point::x, geo::Point::y, and geo::Point::z.

11 {
12  m_x = (_B.x - _A.x);
13  m_y = (_B.y - _A.y);
14  m_z = (_B.z - _A.z);
15 }
float y
Definition: Vec.h:18
float x
Definition: Vec.h:17
float z
Definition: Vec.h:19
geo::Vec::Vec ( geo::Ray  _r,
float  _t 
)

Definition at line 16 of file Vec.cpp.

17 {
18 
19 }

The documentation for this class was generated from the following files: