#include <memory.h>
#include <math.h>
#include <assert.h>
Go to the source code of this file.
Classes | |
class | glh::GLH_REAL_NAMESPACE::line |
class | glh::GLH_REAL_NAMESPACE::matrix4 |
class | glh::GLH_REAL_NAMESPACE::plane |
class | glh::GLH_REAL_NAMESPACE::quaternion |
class | glh::vec< N, T > |
class | glh::GLH_REAL_NAMESPACE::vec2 |
class | glh::GLH_REAL_NAMESPACE::vec3 |
class | glh::GLH_REAL_NAMESPACE::vec4 |
Namespaces | |
namespace | glh |
namespace | glh::GLH_REAL_NAMESPACE |
Defines | |
#define | equivalent(a, b) (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false) |
#define | GLH_DEG_TO_RAD GLH_REAL(0.0174532925199432957692369076848861) |
#define | GLH_EPSILON GLH_REAL(10e-6) |
#define | GLH_ONE GLH_REAL(1.0) |
#define | GLH_PI GLH_REAL(3.1415926535897932384626433832795) |
#define | GLH_QUATERNION_NORMALIZATION_THRESHOLD 64 |
#define | GLH_RAD_TO_DEG GLH_REAL(57.2957795130823208767981548141052) |
#define | GLH_REAL float |
#define | GLH_REAL_IS_FLOAT |
#define | GLH_REAL_NAMESPACE ns_float |
#define | GLH_TWO GLH_REAL(2.0) |
#define | GLH_ZERO GLH_REAL(0.0) |
#define | TEMPLATE_FUNCTION <> |
Typedefs | |
typedef GLH_REAL_NAMESPACE::line | glh::linef |
typedef GLH_REAL_NAMESPACE::matrix4 | glh::matrix4f |
typedef GLH_REAL_NAMESPACE::plane | glh::planef |
typedef GLH_REAL_NAMESPACE::quaternion | glh::quaternionf |
typedef GLH_REAL | glh::GLH_REAL_NAMESPACE::real |
typedef quaternion | glh::GLH_REAL_NAMESPACE::rotation |
typedef GLH_REAL_NAMESPACE::quaternion | glh::rotationf |
typedef GLH_REAL_NAMESPACE::vec2 | glh::vec2f |
typedef GLH_REAL_NAMESPACE::vec3 | glh::vec3f |
typedef vec< 3, unsigned char > | glh::vec3ub |
typedef GLH_REAL_NAMESPACE::vec4 | glh::vec4f |
typedef vec< 4, unsigned char > | glh::vec4ub |
Functions | |
vec3 | glh::GLH_REAL_NAMESPACE::homogenize (const vec4 &v) |
template<int N, class T > | |
bool | glh::operator!= (const vec< N, T > &v1, const vec< N, T > &v2) |
bool | glh::GLH_REAL_NAMESPACE::operator!= (const matrix4 &m1, const matrix4 &m2) |
bool | glh::GLH_REAL_NAMESPACE::operator!= (const quaternion &q1, const quaternion &q2) |
bool | glh::GLH_REAL_NAMESPACE::operator!= (const plane &p1, const plane &p2) |
template<int N, class T > | |
vec< N, T > | glh::operator* (const vec< N, T > &b, T d) |
template<int N, class T > | |
vec< N, T > | glh::operator* (T d, const vec< N, T > &b) |
template<int N, class T > | |
vec< N, T > | glh::operator* (const vec< N, T > &b, const vec< N, T > &d) |
matrix4 | glh::GLH_REAL_NAMESPACE::operator* (const matrix4 &m1, const matrix4 &m2) |
quaternion | glh::GLH_REAL_NAMESPACE::operator* (const quaternion &q1, const quaternion &q2) |
template<int N, class T > | |
vec< N, T > | glh::operator+ (const vec< N, T > &v1, const vec< N, T > &v2) |
template<int N, class T > | |
vec< N, T > | glh::operator- (const vec< N, T > &v1, const vec< N, T > &v2) |
template<int N, class T > | |
vec< N, T > | glh::operator/ (const vec< N, T > &b, T d) |
template<int N, class T > | |
bool | glh::operator== (const vec< N, T > &v1, const vec< N, T > &v2) |
bool | glh::GLH_REAL_NAMESPACE::operator== (const matrix4 &m1, const matrix4 &m2) |
bool | glh::GLH_REAL_NAMESPACE::operator== (const quaternion &q1, const quaternion &q2) |
bool | glh::GLH_REAL_NAMESPACE::operator== (const plane &p1, const plane &p2) |
GLH_REAL | glh::to_degrees (GLH_REAL radians) |
GLH_REAL | glh::to_radians (GLH_REAL degrees) |
#define equivalent | ( | a, | |
b | |||
) | (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false) |
Definition at line 80 of file glh_linear.h.
#define GLH_DEG_TO_RAD GLH_REAL(0.0174532925199432957692369076848861) |
Definition at line 73 of file glh_linear.h.
#define GLH_EPSILON GLH_REAL(10e-6) |
Definition at line 77 of file glh_linear.h.
Definition at line 75 of file glh_linear.h.
Definition at line 78 of file glh_linear.h.
#define GLH_QUATERNION_NORMALIZATION_THRESHOLD 64 |
Definition at line 70 of file glh_linear.h.
#define GLH_RAD_TO_DEG GLH_REAL(57.2957795130823208767981548141052) |
Definition at line 72 of file glh_linear.h.
#define GLH_REAL float |
Definition at line 60 of file glh_linear.h.
#define GLH_REAL_IS_FLOAT |
Definition at line 57 of file glh_linear.h.
#define GLH_REAL_NAMESPACE ns_float |
Definition at line 61 of file glh_linear.h.
Definition at line 76 of file glh_linear.h.
Definition at line 74 of file glh_linear.h.
#define TEMPLATE_FUNCTION <> |
Definition at line 67 of file glh_linear.h.