summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-27 16:06:21 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-27 16:06:21 -0500
commite971200727e4708cc1b73fb4652208dd1bf284c8 (patch)
treeb795d940c9696d1cc7828decb3bcee4293148a7b /libdimension
parentda0b16d79c05a83d14195eaf509352effbe5a215 (diff)
downloaddimension-e971200727e4708cc1b73fb4652208dd1bf284c8.tar.xz
Finish camera placement routine.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/geometry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdimension/geometry.c b/libdimension/geometry.c
index 4aa46ec..dbc703a 100644
--- a/libdimension/geometry.c
+++ b/libdimension/geometry.c
@@ -91,10 +91,11 @@ dmnsn_vector_axis_angle(dmnsn_vector v1, dmnsn_vector v2, dmnsn_vector axis)
dmnsn_vector_normalize(proj));
double angle = acos(c);
- if (dmnsn_vector_dot(dmnsn_vector_cross(v1, proj), axis) > 0)
+ if (dmnsn_vector_dot(dmnsn_vector_cross(v1, proj), axis) > 0) {
return angle;
- else
+ } else {
return -angle;
+ }
}
/* Matrix inversion helper functions */