|
template<class V > |
float | Math::Utils::distance (const V &a, const V &b) |
|
template<class T > |
vec2< T > | Math::Utils::normalize (const vec2< T > &a) |
|
template<class T > |
vec3< T > | Math::Utils::normalize (const vec3< T > &a) |
|
template<class T > |
vec4< T > | Math::Utils::normalize (const vec4< T > &a) |
|
template<class T > |
mat4< T > | Math::Utils::translate (const mat4< T > &M, const vec3< T > &V) |
|
template<class T > |
mat4< T > | Math::Utils::lookAt (const vec3< T > &eye, const vec3< T > ¢er, const vec3< T > &up) |
|
template<class T > |
mat4< T > | Math::Utils::ortho (const float &left, const float &right, const float &bottom, const float &top) |
|
template<class T > |
mat4< T > | Math::Utils::perspective (const float &FOV, const float &width, const float &height, const float &zNear, const float &zFar) |
|
template<class T > |
mat4< T > | Math::Utils::angleAxis (const float &angle, const vec3< T > &axis) |
|
template<class T > |
mat4< T > | Math::Utils::scale (const mat4< T > &mat, const float &factor) |
|
template<class T > |
mat4< T > | Math::Utils::scale (const mat4< T > &mat, const vec3< T > &factor) |
|
template<typename T , typename U > |
vec3< T > | Math::Utils::unProject (vec3< T > const &win, mat4< T > const &model, mat4< T > const &proj, vec4< U > const &viewport) |
|
template<class T > |
mat4< T > | Math::Utils::rotate (const mat4< T > &m, const float &angle, vec3< T > u) |
|
template<class T > |
vec3< T > | Math::Utils::max (const vec3< T > &a, const vec3< T > &b) |
|
template<class T > |
vec3< T > | Math::Utils::lerp (const vec3< T > &p1, const vec3< T > &p2, const float &v) |
|
template<class T > |
vec4< T > | Math::Utils::lerp (const vec4< T > &p1, const vec4< T > &p2, const float &v) |
|
template<class T > |
void * | value_ptr (vec2< T > &vec) |
|
template<class T > |
void * | value_ptr (vec3< T > &vec) |
|
template<class T > |
void * | value_ptr (vec4< T > &vec) |
|
template<class T > |
void * | value_ptr (mat2< T > &mat) |
|
template<class T > |
void * | value_ptr (mat3< T > &mat) |
|
template<class T > |
void * | value_ptr (mat4< T > &mat) |
|
template<class T > |
const void * | value_ptr (vec2< T > const &vec) |
|
template<class T > |
const void * | value_ptr (vec3< T > const &vec) |
|
template<class T > |
const void * | value_ptr (vec4< T > const &vec) |
|
template<class T > |
const void * | value_ptr (mat2< T > const &mat) |
|
template<class T > |
const void * | value_ptr (mat3< T > const &mat) |
|
template<class T > |
const void * | value_ptr (mat4< T > const &mat) |
|
template<class T > |
T | sign (const T &d) |
|
template<class T > |
T | abs (const T &d) |
|
Utility functions for 2,3,4-D vectors/matrices.
This header file holds all sorts of helper functions used in computer-graphics to manipulate 2,3,4-D objects.