diff options
| author | Thomas Paine <tjjpaine@gmail.com> | 2024-03-07 14:25:20 +1100 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2024-03-06 21:00:43 -0700 |
| commit | e812f96b85944fc559d8c07be3e1e5e2c43869aa (patch) | |
| tree | e754e7a216e03e7fe9d6eef1d4f4d6cc0fc3917e /cube | |
| parent | 1132033192878a68501891aadad0cfefdb43bda7 (diff) | |
| download | usermoji-e812f96b85944fc559d8c07be3e1e5e2c43869aa.tar.xz | |
Cast double to float
Diffstat (limited to 'cube')
| -rw-r--r-- | cube/linmath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cube/linmath.h b/cube/linmath.h index ab72bed8..5abe1827 100644 --- a/cube/linmath.h +++ b/cube/linmath.h @@ -584,13 +584,13 @@ LINMATH_H_FUNC void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 float z_b = 0.; if(vec2_len(a) < 1.) { - z_a = sqrtf(1. - vec2_mul_inner(a, a)); + z_a = sqrtf(1.f - vec2_mul_inner(a, a)); } else { vec2_norm(a, a); } if(vec2_len(b) < 1.) { - z_b = sqrtf(1. - vec2_mul_inner(b, b)); + z_b = sqrtf(1.f - vec2_mul_inner(b, b)); } else { vec2_norm(b, b); } |
