diff options
| author | Jason Maskell <[email protected]> | 2016-05-12 10:58:15 +0200 |
|---|---|---|
| committer | Jason Maskell <[email protected]> | 2016-05-12 10:58:15 +0200 |
| commit | 72b21c69e32c73abf3a18b0e962746e64faebba4 (patch) | |
| tree | cd22b1b298bc865c3ae6037e8eb89a64a94203ea /sample/opengl/math_code.h | |
| parent | Merge branch 'master' of https://github.com/NVIDIAGameWorks/WaveWorks (diff) | |
| download | waveworks_archive-72b21c69e32c73abf3a18b0e962746e64faebba4.tar.xz waveworks_archive-72b21c69e32c73abf3a18b0e962746e64faebba4.zip | |
Restructuring starts. Got some initial CMake problems sorted. Need to extend.
Diffstat (limited to 'sample/opengl/math_code.h')
| -rw-r--r-- | sample/opengl/math_code.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sample/opengl/math_code.h b/sample/opengl/math_code.h deleted file mode 100644 index e03da47..0000000 --- a/sample/opengl/math_code.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * math_code.h - * - * Created on: 21.03.2011 - * Author: ttcheblokov - */ -#include <math.h> - -#ifndef MATH_CODE_H_ -#define MATH_CODE_H_ - -// vector and matrix math functions - void cutLowerHalfspace(float result[4][4], float level, float position, float viewmatrix[4][4], float projectionmatrix[4][4]); - void cutUpperHalfspace(float result[4][4], float level, float position, float viewmatrix[4][4], float projectionmatrix[4][4]); - void vec3CrossProductNormalized(float result[3], float a[3], float b[3]); - void vec4Sub(float a[4], float b[4], float c[4]); - void vec4Add(float a[4], float b[4], float c[4]); - float vec3DotProduct(float a[3], float b[3]); - float vec4DotProduct(float a[4], float b[4]); - void vec4Normalize(float a[4]); - void vec3Normalize(float a[3]); - void mat4Add(float result[4][4], float a[4][4], float b[4][4]); - void mat4ConstMul(float result[4][4], float a[4][4], float b); - void mat4Transpose(float result[4][4], float a[4][4]); - void mat4Mat4Mul(float result[4][4], float a[4][4], float b[4][4]); - void vec4Mat4Mul(float result[4], float a[4], float b[4][4]); - void mat4Vec4Mul(float result[4], float a[4][4], float b[4]); - void mat4CreateIdentity (float result[4][4]); - void mat4CreateScale (float result[4][4], float x, float y, float z); - void mat4CreateTranslation (float result[4][4], float x, float y, float z); - void mat4CreateView(float result[4][4], float eyepoint[3], float lookatpoint[3]); - void mat4CreateProjection (float result[4][4], float w, float h, float zn, float zf); - void mat4CreateOrthoProjection (float result[4][4], float xmin, float xmax, float ymin, float ymax, float zmin, float zmax); - void mat4CreateRotation (float result[4][4], float angle, char axis); - void mat4Inverse(float result[4][4],float source[4][4]); - void mat4Mat4Copy (float result[4][4], float source[4][4]); - - float sgn (float a); - float det2x2(float a,float b, float c,float d); - float det3x3(float a1,float a2,float a3, - float b1,float b2,float b3, - float c1,float c2,float c3); - float det4x4(float m[4][4]); - void adjoint(float adj[4][4],float m[4][4]); - - - - -#endif /* MATH_CODE_H_ */ |