summaryrefslogtreecommitdiff
path: root/src/math/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/math.h')
-rw-r--r--src/math/math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/math.h b/src/math/math.h
index 03e156e..a69dabe 100644
--- a/src/math/math.h
+++ b/src/math/math.h
@@ -11,7 +11,7 @@
#define PI 3.141592653f
#define RAD2DEG 57.295779523f /*180.f/PI*/
#define DEG2RAG 0.0174532925f /*PI/180.f*/
-#define EPSILON 1e-6f
+#define EPSILON 1e-4f
/* 用来打印的公共buffer */
extern char printbuffer[1024];
@@ -251,7 +251,7 @@ void mat4_toquat(Mat4* in, Quat* out); /*in是正交矩阵*/
#define ROWMAT(A, ...)\
Mat4 A={__VA_ARGS__};mat4_transpose(&A, &A);
-void mat3_applytovec3(Mat3* m, Vec3* v, Vec3* out);
+void mat3_multvec3(Mat3* m, Vec3* v, Vec3* out);
void mat23_applytovec3(Mat23* m, Vec3* v, Vec2* out);
void mat43_applytovec3(Mat43* m, Vec3* v, Vec4* out);