#include <string.h>
#include <math.h>
Go to the source code of this file.
|
| template<typename T > |
| T | operator- (const T &a) |
| |
| template<typename T > |
| T | operator* (const T &a, const T &b) |
| |
| template<typename T > |
| T | operator/ (const T &a, const T &b) |
| |
| template<typename T > |
| T | operator+ (const T &a, const T &b) |
| |
| template<typename T > |
| T | operator- (const T &a, const T &b) |
| |
| template<typename T > |
| T & | operator*= (T &a, const T &b) |
| |
| template<typename T > |
| T & | operator/= (T &a, const T &b) |
| |
| template<typename T > |
| T & | operator+= (T &a, const T &b) |
| |
| template<typename T > |
| T & | operator-= (T &a, const T &b) |
| |
| mat4 | operator* (const mat4 &a, const mat4 &b) |
| |
| vec4 | operator* (const mat4 &mat, const vec4 &vec) |
| |
| mat4 & | operator*= (mat4 &mat, float v) |
| |
| vec3 | vec_cross (const vec3 &a, const vec3 &b) |
| |
| template<typename T > |
| float | vec_dot (const T &a, const T &b) |
| |
| template<typename T > |
| float | vec_length (const T &vec) |
| |
| template<typename T > |
| T | vec_normalize (const T &vec) |
| |
| template<typename T > |
| T | vec_floor (const T &vec) |
| |
| template<typename T > |
| T | vec_fract (const T &vec) |
| |
| vec3 | vec_project (const vec4 &vec) |
| |
| mat4 | mat_look_at (const vec3 &eye, const vec3 ¢er, const vec3 &up) |
| |
| mat4 | mat_perspective_fov (float fovy, float aspect, float zn, float zf) |
| |
| mat4 | mat_inverse (const mat4 &a) |
| |
template<typename T >
| T operator* |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T& operator*= |
( |
T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T operator+ |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T& operator+= |
( |
T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T operator- |
( |
const T & |
a | ) |
|
|
inline |
template<typename T >
| T operator- |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T& operator-= |
( |
T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T operator/ |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T& operator/= |
( |
T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| float vec_dot |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inline |
template<typename T >
| T vec_floor |
( |
const T & |
vec | ) |
|
|
inline |
template<typename T >
| T vec_fract |
( |
const T & |
vec | ) |
|
|
inline |
template<typename T >
| float vec_length |
( |
const T & |
vec | ) |
|
|
inline |
template<typename T >
| T vec_normalize |
( |
const T & |
vec | ) |
|
|
inline |