X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=progs%2Fdemos%2Fspaceball%2Fvmath.c;h=7ef3c25e737f9d65857afce24a9f9d66178d501f;hb=2c12c9eb8d63cabac2d4113b4f54fdf53da8368c;hp=58f2c4184d78dc3e50e0bc2f9930317902c05daf;hpb=8507764d48cceb8461f9d0194915fa0b7fb58447;p=freeglut diff --git a/progs/demos/spaceball/vmath.c b/progs/demos/spaceball/vmath.c index 58f2c41..7ef3c25 100644 --- a/progs/demos/spaceball/vmath.c +++ b/progs/demos/spaceball/vmath.c @@ -4,10 +4,10 @@ quat_t quat_rotate(quat_t q, float angle, float x, float y, float z) { quat_t rq; - float half_angle = angle * 0.5; - float sin_half = sin(half_angle); + float half_angle = angle * 0.5f; + float sin_half = (float)sin(half_angle); - rq.w = cos(half_angle); + rq.w = (float)cos(half_angle); rq.x = x * sin_half; rq.y = y * sin_half; rq.z = z * sin_half;