summaryrefslogtreecommitdiffstats
path: root/libdimension/torus.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/torus.c')
-rw-r--r--libdimension/torus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/torus.c b/libdimension/torus.c
index 150f0f4..852102e 100644
--- a/libdimension/torus.c
+++ b/libdimension/torus.c
@@ -145,8 +145,8 @@ dmnsn_object *
dmnsn_new_torus(double major, double minor)
{
dmnsn_object *torus = dmnsn_new_object();
- torus->intersection_fn = &dmnsn_torus_intersection_fn;
- torus->inside_fn = &dmnsn_torus_inside_fn;
+ torus->intersection_fn = dmnsn_torus_intersection_fn;
+ torus->inside_fn = dmnsn_torus_inside_fn;
torus->bounding_box.min = dmnsn_new_vector(-(major + minor),
-minor,
-(major + minor));
@@ -158,6 +158,6 @@ dmnsn_new_torus(double major, double minor)
payload->major = major;
payload->minor = minor;
torus->ptr = payload;
- torus->free_fn = &dmnsn_free;
+ torus->free_fn = dmnsn_free;
return torus;
}