diff options
| author | Thomas Paine <tjjpaine@gmail.com> | 2024-03-07 14:37:44 +1100 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2024-03-06 21:00:43 -0700 |
| commit | 1cadce4cc4e680fe436cafb7097044a6cf0d9f8a (patch) | |
| tree | be2532df2aa945a3bbaca0b39dc1ad7a5b35f0f2 | |
| parent | e812f96b85944fc559d8c07be3e1e5e2c43869aa (diff) | |
| download | usermoji-1cadce4cc4e680fe436cafb7097044a6cf0d9f8a.tar.xz | |
Cast double to float
| -rw-r--r-- | cube/linmath.h | 2 |
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); } |
