diff options
author | chai <chaifix@163.com> | 2020-02-22 23:33:06 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-02-22 23:33:06 +0800 |
commit | b656c9415a8e7e3b5b7d8bf1f3c8a5444f830c79 (patch) | |
tree | f4f0578d58e5f12b00d2753efef83aaedc03137e /src/math/math.h | |
parent | 9c89460e136ed6c6c43704d9a3a15105e0f006b0 (diff) |
*misc
Diffstat (limited to 'src/math/math.h')
-rw-r--r-- | src/math/math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/math.h b/src/math/math.h index 1c65c01..03e156e 100644 --- a/src/math/math.h +++ b/src/math/math.h @@ -159,9 +159,11 @@ extern Vec4 vec4zero; /*(0,0,0)*/ void vec3_tostring(Vec3* v, char buf[]); void vec3_print(Vec3* v); +Vec3 vec3_make(float x, float y, float z); float vec3_intersection(Vec3* v1, Vec3* v2); /*夹角*/ void vec3_projection(Vec3* v1, Vec3* v2, Vec3* out);/*v1在v2上的投影*/ void vec3_scale(Vec3* v, float k, Vec3* out); +void vec3_scale3(Vec3* v, Vec3* scalar, Vec3* out); void vec3_plus(Vec3* v1, Vec3* v2, Vec3* out); void vec3_offset(Vec3* v, float offset, Vec3* out); void vec3_normalize(Vec3* v, Vec3* out); @@ -260,6 +262,8 @@ void mat43_applytovec3(Mat43* m, Vec3* v, Vec4* out); void quat_tostring(Quat* q, char str[]); void quat_print(Quat* q); +Quat quat_make(float rx, float ry, float rz); + void euler_toquat(Euler* e, Quat* out); void euler_deg2rad(Euler* in, Euler* out); void euler_rad2deg(Euler* in, Euler* out); |