summaryrefslogtreecommitdiffstats
path: root/libdimension/torus.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/torus.c
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
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;
}