]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - matrixlib.c
ODE stuff:
[xonotic/darkplaces.git] / matrixlib.c
index f84e922d506dce80ac34ed6e69f081b59d1b56eb..7d33463adfde275495e633bf3c5c331a15c0361e 100644 (file)
@@ -1809,6 +1809,19 @@ void Matrix4x4_Scale (matrix4x4_t *out, double rotatescale, double originscale)
 #endif
 }
 
+void Matrix4x4_OriginScale3 (matrix4x4_t *out, double x, double y, double z)
+{
+#ifdef MATRIX4x4_OPENGLORIENTATION
+       out->m[3][0] *= x;
+       out->m[3][1] *= y;
+       out->m[3][2] *= z;
+#else
+       out->m[0][3] *= x;
+       out->m[1][3] *= y;
+       out->m[2][3] *= z;
+#endif
+}
+
 void Matrix4x4_Abs (matrix4x4_t *out)
 {
     out->m[0][0] = fabs(out->m[0][0]);