aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-11-29 13:38:12 +0100
committerThomas White <taw@bitwiz.org.uk>2009-11-29 13:38:12 +0100
commit4cdb2af5970c4631f4b79ad635752ea56ddf3297 (patch)
tree173847ae89507c5ba7fc6e1939664d58d0a6591a
parent49bda909c11594b2676d8b1c8a0b01a9cdc97693 (diff)
Actually normalise the quaternion
-rw-r--r--src/utils.c2
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;
}