CVectBase.cpp File Reference

This file contains the implementation of the CVectBase class. More...

#include <cmath>
#include <iostream>
#include "popassert.h"
#include "CVector3f.h"
#include "CVectBase.h"

Go to the source code of this file.


Detailed Description

This file contains the implementation of the CVectBase class.

It contains the function that builds the base. The first vector is simply a vector going from the eye of the viewer to the center of the bounding box of the surface. The third one is obtained by substracting from the vector $ \vec{k} $ the component that is parallel to the first vector. If the first vector is parallel to $ \vec{k} $, $ \vec{j} $ is taken instead. The second vector is the cross product of the first one and the third one. Note that this base is not direct, meaning that $ \vec{B1} \times \vec{B2} = - \vec{B3} $

Definition in file CVectBase.cpp.


Generated on Fri Dec 5 03:20:33 2008 for Mathematical Ray-tracer by  doxygen 1.5.4