summaryrefslogtreecommitdiff
path: root/src/math/mat.c
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/mat.c
parentb656c9415a8e7e3b5b7d8bf1f3c8a5444f830c79 (diff)
*camera
Diffstat (limited to 'src/math/mat.c')
-rw-r--r--src/math/mat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/mat.c b/src/math/mat.c
index 592dd5e..c254c02 100644
--- a/src/math/mat.c
+++ b/src/math/mat.c
@@ -748,7 +748,7 @@ void mat4_toquat(Mat4* in, Quat* out) {
quat_normalize(out, out);
}
-void mat3_applytovec3(Mat3* m, Vec3* v, Vec3* out) {
+void mat3_multvec3(Mat3* m, Vec3* v, Vec3* out) {
ssr_assert(m && v && out);
out->x = m->e00 * v->x + m->e01 * v->y + m->e02 * v->z;
out->y = m->e10 * v->x + m->e11 * v->y + m->e12 * v->z;