Classes | Defines | Functions | Variables
tgMathlib.h File Reference
#include <math.h>
#include <stdlib.h>
#include <ostream>
Include dependency graph for tgMathlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mat3
struct  mat4
struct  quat
struct  vec2
struct  vec3
struct  vec4

Defines

#define DEG2RAD   (PI / 180.0f)
#define PI   3.14159265358979323846f
#define RAD2DEG   (180.0f / PI)

Functions

vec3 absolute (const vec3 &v1)
vec3 cross (const vec3 &v1, const vec3 &v2)
unsigned int ilog2 (unsigned int value)
vec3 normalize (const vec3 &v)
vec4 normalize (const vec4 &v)
std::ostream & operator<< (std::ostream &out, const mat3 &m)
vec3 saturate (const vec3 &v)
vec4 saturate (const vec4 &v)

Variables

const float epsilon = 1e-6f

Define Documentation

#define DEG2RAD   (PI / 180.0f)

Definition at line 32 of file tgMathlib.h.

#define PI   3.14159265358979323846f

Definition at line 28 of file tgMathlib.h.

#define RAD2DEG   (180.0f / PI)

Definition at line 33 of file tgMathlib.h.


Function Documentation

vec3 absolute ( const vec3 v1) [inline]

Definition at line 200 of file tgMathlib.h.

vec3 cross ( const vec3 v1,
const vec3 v2 
) [inline]

Definition at line 192 of file tgMathlib.h.

unsigned int ilog2 ( unsigned int  value) [inline]

Definition at line 46 of file tgMathlib.h.

vec3 normalize ( const vec3 v) [inline]

Definition at line 186 of file tgMathlib.h.

vec4 normalize ( const vec4 v) [inline]

Definition at line 292 of file tgMathlib.h.

std::ostream& operator<< ( std::ostream &  out,
const mat3 m 
)

Definition at line 3 of file tgMathlib.cpp.

vec3 saturate ( const vec3 v) [inline]

Definition at line 208 of file tgMathlib.h.

vec4 saturate ( const vec4 v) [inline]

Definition at line 298 of file tgMathlib.h.


Variable Documentation

const float epsilon = 1e-6f

Definition at line 44 of file tgMathlib.h.



blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12