diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-11-29 13:38:12 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-11-29 13:38:12 +0100 |
commit | 4cdb2af5970c4631f4b79ad635752ea56ddf3297 (patch) | |
tree | 173847ae89507c5ba7fc6e1939664d58d0a6591a /src/utils.c | |
parent | 49bda909c11594b2676d8b1c8a0b01a9cdc97693 (diff) |
Actually normalise the quaternion
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 9fd6ed4e..f27b1228 100644 --- a/src/utils.c +++ b/src/utils.c @@ -126,7 +126,7 @@ struct quaternion random_quaternion() q.x = (double)random()/RAND_MAX; q.y = (double)random()/RAND_MAX; q.z = (double)random()/RAND_MAX; - normalise_quaternion(q); + q = normalise_quaternion(q); return q; } |