diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-07-03 22:35:59 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-07-03 22:35:59 -0600 |
commit | f0d866e2ad137b339eae91c49ce22630f3a9adf9 (patch) | |
tree | adcedd46c6f5e81bf392fe5712d8081e217c0bac /tests/libdimension | |
parent | 2b5d6e5f42f625049e3f9df765e0cf3fbecc6520 (diff) | |
download | dimension-f0d866e2ad137b339eae91c49ce22630f3a9adf9.tar.xz |
New dmnsn_radians() and dmnsn_degrees() conversion functions.
Diffstat (limited to 'tests/libdimension')
-rw-r--r-- | tests/libdimension/tests.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index 68fac12..393a1d6 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -57,7 +57,7 @@ dmnsn_new_default_scene() trans ); trans = dmnsn_matrix_mul( - dmnsn_rotation_matrix(dmnsn_new_vector(0.0, 1.0, 0.0)), + dmnsn_rotation_matrix(dmnsn_new_vector(0.0, dmnsn_radians(53.0), 0.0)), trans ); @@ -86,7 +86,9 @@ dmnsn_new_default_scene() cube->interior = dmnsn_new_interior(); cube->interior->ior = 1.1; - cube->trans = dmnsn_rotation_matrix(dmnsn_new_vector(0.75, 0.0, 0.0)); + cube->trans = dmnsn_rotation_matrix( + dmnsn_new_vector(dmnsn_radians(45.0), 0.0, 0.0) + ); dmnsn_object *csg = dmnsn_new_csg_difference(cube, sphere); dmnsn_array_push(scene->objects, &csg); |