From 1cadce4cc4e680fe436cafb7097044a6cf0d9f8a Mon Sep 17 00:00:00 2001 From: Thomas Paine Date: Thu, 7 Mar 2024 14:37:44 +1100 Subject: Cast double to float --- cube/linmath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/linmath.h b/cube/linmath.h index 5abe1827..6df1d7ee 100644 --- a/cube/linmath.h +++ b/cube/linmath.h @@ -601,7 +601,7 @@ LINMATH_H_FUNC void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 vec3 c_; vec3_mul_cross(c_, a_, b_); - float const angle = acos(vec3_mul_inner(a_, b_)) * s; + float const angle = acosf(vec3_mul_inner(a_, b_)) * s; mat4x4_rotate(R, M, c_[0], c_[1], c_[2], angle); } -- cgit v1.2.3