diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-19 02:34:22 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-19 02:34:22 -0500 |
commit | 4dcb998baf07243838afcb4e202b7fd89399972e (patch) | |
tree | d4cbde7810ed2042ab4f8ef70024184f3511f5fb /tests | |
parent | 4c55801feb15617888472def76ca4d1a60b3a107 (diff) | |
download | dimension-4dcb998baf07243838afcb4e202b7fd89399972e.tar.xz |
Use dmnsn_new_*() rather than dmnsn_*_construct().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libdimension/kD_splay_tree.c | 12 | ||||
-rw-r--r-- | tests/libdimension/tests.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tests/libdimension/kD_splay_tree.c b/tests/libdimension/kD_splay_tree.c index eca684b..ea53550 100644 --- a/tests/libdimension/kD_splay_tree.c +++ b/tests/libdimension/kD_splay_tree.c @@ -34,14 +34,14 @@ main() obj2 = dmnsn_new_object(); obj3 = dmnsn_new_object(); - obj1->min = dmnsn_vector_construct(0.0, 0.0, 0.0); - obj1->max = dmnsn_vector_construct(1.0, 1.0, 1.0); + obj1->min = dmnsn_new_vector(0.0, 0.0, 0.0); + obj1->max = dmnsn_new_vector(1.0, 1.0, 1.0); - obj2->min = dmnsn_vector_construct(-2.0, -2.0, -2.0); - obj2->max = dmnsn_vector_construct(1.0, 1.0, 1.0); + obj2->min = dmnsn_new_vector(-2.0, -2.0, -2.0); + obj2->max = dmnsn_new_vector(1.0, 1.0, 1.0); - obj3->min = dmnsn_vector_construct(-1.0, -1.0, -1.0); - obj3->max = dmnsn_vector_construct(0.0, 0.0, 0.0); + obj3->min = dmnsn_new_vector(-1.0, -1.0, -1.0); + obj3->max = dmnsn_new_vector(0.0, 0.0, 0.0); tree = dmnsn_new_kD_splay_tree(); diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index c0bd11f..f632aa1 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -52,16 +52,16 @@ dmnsn_new_default_scene() /* Set up the transformation matrix for the perspective camera */ dmnsn_matrix trans = dmnsn_scale_matrix( - dmnsn_vector_construct( + dmnsn_new_vector( ((double)scene->canvas->x)/scene->canvas->y, 1.0, 1.0 ) ); trans = dmnsn_matrix_mul( - dmnsn_translation_matrix(dmnsn_vector_construct(0.0, 0.0, -4.0)), + dmnsn_translation_matrix(dmnsn_new_vector(0.0, 0.0, -4.0)), trans ); trans = dmnsn_matrix_mul( - dmnsn_rotation_matrix(dmnsn_vector_construct(0.0, 1.0, 0.0)), + dmnsn_rotation_matrix(dmnsn_new_vector(0.0, 1.0, 0.0)), trans ); @@ -94,7 +94,7 @@ dmnsn_new_default_scene() return NULL; } - sphere->trans = dmnsn_scale_matrix(dmnsn_vector_construct(1.25, 1.25, 1.25)); + sphere->trans = dmnsn_scale_matrix(dmnsn_new_vector(1.25, 1.25, 1.25)); dmnsn_object *cube = dmnsn_new_cube(); if (!cube) { @@ -118,12 +118,12 @@ dmnsn_new_default_scene() return NULL; } - cube->trans = dmnsn_rotation_matrix(dmnsn_vector_construct(0.75, 0.0, 0.0)); + cube->trans = dmnsn_rotation_matrix(dmnsn_new_vector(0.75, 0.0, 0.0)); /* Now make a light */ dmnsn_light *light = dmnsn_new_point_light( - dmnsn_vector_construct(-15.0, 20.0, 10.0), + dmnsn_new_vector(-15.0, 20.0, 10.0), dmnsn_cyan ); if (!light) { |