diff options
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); |