summaryrefslogtreecommitdiffstats
path: root/libdimension/sphere.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-06 01:24:42 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-06 01:24:42 -0400
commitb7405924923986314b09460995c2ebce3b717100 (patch)
treeb1bd9c4defdbaabda88e90af69d4ea9dfa75a817 /libdimension/sphere.c
parente328a1d560b7924084b7a45160a75f2a0d3a6e27 (diff)
downloaddimension-b7405924923986314b09460995c2ebce3b717100.tar.xz
New dmnsn_bounding_box type.
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r--libdimension/sphere.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/sphere.c b/libdimension/sphere.c
index f42ef17..7c2894b 100644
--- a/libdimension/sphere.c
+++ b/libdimension/sphere.c
@@ -40,10 +40,10 @@ dmnsn_new_sphere()
{
dmnsn_object *sphere = dmnsn_new_object();
if (sphere) {
- sphere->intersection_fn = &dmnsn_sphere_intersection_fn;
- sphere->inside_fn = &dmnsn_sphere_inside_fn;
- sphere->min = dmnsn_new_vector(-1.0, -1.0, -1.0);
- sphere->max = dmnsn_new_vector(1.0, 1.0, 1.0);
+ sphere->intersection_fn = &dmnsn_sphere_intersection_fn;
+ sphere->inside_fn = &dmnsn_sphere_inside_fn;
+ sphere->bounding_box.min = dmnsn_new_vector(-1.0, -1.0, -1.0);
+ sphere->bounding_box.max = dmnsn_new_vector(1.0, 1.0, 1.0);
}
return sphere;
}