summaryrefslogtreecommitdiff
path: root/src/math/math.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-16 01:45:33 +0800
committerchai <chaifix@163.com>2020-07-16 01:45:33 +0800
commitefb40cfff1bbbd4f6ff0b0c05788dff6ad45ff02 (patch)
tree5ec8775ed0c6daa9ae57fe5079c422b220b1eba4 /src/math/math.h
parentb0235d7a0bac4994da7102887ec0ba1cd613769f (diff)
*mesh import
Diffstat (limited to 'src/math/math.h')
-rw-r--r--src/math/math.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/math.h b/src/math/math.h
index 8fa748b..b520f9e 100644
--- a/src/math/math.h
+++ b/src/math/math.h
@@ -81,6 +81,8 @@ float internal_vec3_magnitude2(Vec3* v1);
void internal_vec3_lerp(Vec3* v1, Vec3* v2, float t, Vec3* out);
void internal_vec3_slerp(Vec3* v1, Vec3* v2, float t, Vec3* out);
+void internal_vec3_orthogonalize(Vec3* x, Vec3* y, Vec3* z, Vec3* out_x, Vec3* out_y, Vec3* out_z); // 以z为基准进行正交化
+
void internal_vec4_dividew(Vec4* v, Vec3* out);
void internal_vec4_dividewnoz(Vec4* v, Vec4* out);