diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-27 16:06:21 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-27 16:06:21 -0500 |
commit | e971200727e4708cc1b73fb4652208dd1bf284c8 (patch) | |
tree | b795d940c9696d1cc7828decb3bcee4293148a7b /libdimension | |
parent | da0b16d79c05a83d14195eaf509352effbe5a215 (diff) | |
download | dimension-e971200727e4708cc1b73fb4652208dd1bf284c8.tar.xz |
Finish camera placement routine.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/geometry.c | 5 |
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 */ |