summaryrefslogtreecommitdiff
path: root/src/math/math.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-02-24 10:28:41 +0800
committerchai <chaifix@163.com>2020-02-24 10:28:41 +0800
commit538cb1cd010a3323ad61239a12a4134ef4dceca6 (patch)
tree0a2c492ce5d27c77da039aa5189b67aa3070aa20 /src/math/math.h
parentb656c9415a8e7e3b5b7d8bf1f3c8a5444f830c79 (diff)
*camera
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);