X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=matrixlib.h;h=cf76252447e6104d3100f32fb611692558aea90a;hp=d15d9ccdce76d2da2f1cb0311e5c0a3f787246a0;hb=4d33dcb245a32cf4c44807e8b53e4fccea944633;hpb=953f1f8feaa55e272118605371c13bf0f68585da diff --git a/matrixlib.h b/matrixlib.h index d15d9ccd..cf762524 100644 --- a/matrixlib.h +++ b/matrixlib.h @@ -2,9 +2,7 @@ #ifndef MATRIXLIB_H #define MATRIXLIB_H -#ifndef M_PI -#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h -#endif +#include "qtypes.h" //#define MATRIX4x4_OPENGLORIENTATION @@ -81,7 +79,7 @@ void Matrix4x4_CreateScale3 (matrix4x4_t *out, double x, double y, double z); // creates a matrix for a quake entity void Matrix4x4_CreateFromQuakeEntity(matrix4x4_t *out, double x, double y, double z, double pitch, double yaw, double roll, double scale); // creates a duke3d view matrix for a quake view matrix ;) -void Matrix4x4_QuakeToDuke3D(const matrix4x4_t *in, matrix4x4_t *out); +void Matrix4x4_QuakeToDuke3D(const matrix4x4_t *in, matrix4x4_t *out, double maxShearAngle); // converts a matrix4x4 to a set of 3D vectors for the 3 axial directions, and the translate void Matrix4x4_ToVectors(const matrix4x4_t *in, vec_t vx[3], vec_t vy[3], vec_t vz[3], vec_t t[3]);