aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Paine <tjjpaine@gmail.com>2024-03-07 14:37:44 +1100
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2024-03-06 21:00:43 -0700
commit1cadce4cc4e680fe436cafb7097044a6cf0d9f8a (patch)
treebe2532df2aa945a3bbaca0b39dc1ad7a5b35f0f2
parente812f96b85944fc559d8c07be3e1e5e2c43869aa (diff)
downloadusermoji-1cadce4cc4e680fe436cafb7097044a6cf0d9f8a.tar.xz
Cast double to float
-rw-r--r--cube/linmath.h2
1 files changed, 1 insertions, 1 deletions
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);
}