DeferredRenderer 1.0
|
00001 #ifndef NGLMATH_H 00002 #define NGLMATH_H 00003 00004 #include "ngl/Matrix.h" 00005 #include "ngl/Vector.h" 00006 #include "math.h" 00007 00013 00016 inline float cotan(const float &_i) { return(1 / tan(_i)); } 00017 00023 ngl::Matrix Lookat(const ngl::Vector &_eye, const ngl::Vector &_target,const ngl::Vector &_lookup); 00024 00028 ngl::Matrix Adj( const ngl::Matrix &_mat ); 00029 00033 float Det( const ngl::Matrix &_mat ); 00034 00038 ngl::Matrix Inverse( const ngl::Matrix &_mat ); 00039 00040 #endif // NGLMATH_H