]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - matrixlib.h
got rid of all the (no longer used) cached_ fields in the msurface_t struct, except...
[xonotic/darkplaces.git] / matrixlib.h
index 62b8a3e1ff36c2942c235351dda9b36aa5c9e9d0..d8d14752d4a9463d12ddc9a35cd3034696a6f362 100644 (file)
@@ -73,6 +73,8 @@ void Matrix4x4_Transform4 (const matrix4x4_t *in, const float v[4], float out[4]
 // cases (rotation and translation *ONLY*), this attempts to undo the results
 // of Transform
 //void Matrix4x4_SimpleUntransform (const matrix4x4_t *in, const float v[3], float out[3]);
+// transforms a direction vector through the rotation part of a matrix
+void Matrix4x4_Transform3x3 (const matrix4x4_t *in, const float v[3], float out[3]);
 
 // ease of use functions
 // immediately applies a Translate to the matrix
@@ -84,6 +86,8 @@ void Matrix4x4_ConcatScale (matrix4x4_t *out, float x);
 // immediately applies a Scale3 to the matrix
 void Matrix4x4_ConcatScale3 (matrix4x4_t *out, float x, float y, float z);
 
+// print a matrix to the console
+void Matrix4x4_Print(const matrix4x4_t *in);
 
 
 // functions for manipulating 3x4 matrices
@@ -137,7 +141,9 @@ void Matrix3x4_Transform (const matrix3x4_t *in, const float v[3], float out[3])
 // reverse transforms a 3D vector through a matrix3x4, at least for *simple*
 // cases (rotation and translation *ONLY*), this attempts to undo the results
 // of Transform
-void Matrix3x4_SimpleUntransform (const matrix3x4_t *in, const float v[3], float out[3]);
+//void Matrix3x4_SimpleUntransform (const matrix3x4_t *in, const float v[3], float out[3]);
+// transforms a direction vector through the rotation part of a matrix
+void Matrix3x4_Transform3x3 (const matrix3x4_t *in, const float v[3], float out[3]);
 
 // ease of use functions
 // immediately applies a Translate to the matrix
@@ -149,4 +155,7 @@ void Matrix3x4_ConcatScale (matrix3x4_t *out, float x);
 // immediately applies a Scale3 to the matrix
 void Matrix3x4_ConcatScale3 (matrix3x4_t *out, float x, float y, float z);
 
+// print a matrix to the console
+void Matrix3x4_Print(const matrix3x4_t *in);
+
 #endif