#include <cmath>
#include <iostream>
Classes | |
class | Vec3 |
Typedefs | |
typedef Vec3< double > | Vec3d |
typedef Vec3< float > | Vec3f |
typedef Vec3< int > | Vec3i |
Functions | |
template<class S, class T> | |
Vec3< T > | operator * (S a, const Vec3< T > &v) |
template<class T> | |
std::ostream & | operator<< (std::ostream &os, const Vec3< T > &vec) |
template<class Vec> | |
Vec | project (const Vec &s, const Vec &t) |
template<class Vec> | |
Vec | reflect (const Vec &s, const Vec &t) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Vec3< T > & | vec | |||
) | [inline] |
Vec project | ( | const Vec & | s, | |
const Vec & | t | |||
) | [inline] |
Vec reflect | ( | const Vec & | s, | |
const Vec & | t | |||
) | [inline] |