]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - matrixlib.h
improved server handling of multiple packets per client physics frame (as would be...
[xonotic/darkplaces.git] / matrixlib.h
index 87b09f84dc123cb19bd30dae48c84a963ec4ac4d..d3d29ed1303316a2ce9e2873d459ecf485e7adfe 100644 (file)
@@ -12,6 +12,8 @@ typedef struct matrix4x4_s
 }
 matrix4x4_t;
 
+extern const matrix4x4_t identitymatrix;
+
 // functions for manipulating 4x4 matrices
 
 // copy a matrix4x4
@@ -32,6 +34,9 @@ void Matrix4x4_Transpose3x3 (matrix4x4_t *out, const matrix4x4_t *in1);
 // creates a matrix that does the opposite of the matrix provided
 // only supports translate, rotate, scale (not scale3) matrices
 void Matrix4x4_Invert_Simple (matrix4x4_t *out, const matrix4x4_t *in1);
+// creates a matrix that does the same rotation and translation as the matrix
+// provided, but no uniform scaling, does not support scale3 matrices
+void Matrix4x4_Normalize (matrix4x4_t *out, matrix4x4_t *in1);
 
 // creates an identity matrix
 // (a matrix which does nothing)