-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMatrix.h
30 lines (26 loc) · 963 Bytes
/
Matrix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/******************************************************************
*
* Matrix.h
*
* Description: Helper routine for matrix computations.
*
*
* Computer Graphics Proseminar SS 2014
*
* Interactive Graphics and Simulation Group
* Institute of Computer Science
* University of Innsbruck
*
*******************************************************************/
#ifndef __MATRIX_H__
#define __MATRIX_H__
void SetIdentityMatrix(float* result);
void SetIdentityMatrix3x3(float* result);
void SetRotationX(float anglex, float* result);
void SetRotationY(float angley, float* result);
void SetRotationZ(float anglez, float* result);
void SetTranslation(float x, float y, float z, float* result);
void SetScaling(float x, float y, float z, float* result);
void MultiplyMatrix(float* m1, float* m2, float* result);
void SetPerspectiveMatrix(float fov, float aspect, float nearPlane, float farPlane, float* result);
#endif // __MATRIX_H__