summaryrefslogtreecommitdiffstats
path: root/libdimension/sphere.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r--libdimension/sphere.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/sphere.c b/libdimension/sphere.c
index f30c964..f42ef17 100644
--- a/libdimension/sphere.c
+++ b/libdimension/sphere.c
@@ -31,8 +31,8 @@
static dmnsn_intersection *
dmnsn_sphere_intersection_fn(const dmnsn_object *sphere, dmnsn_line line);
-static int dmnsn_sphere_inside_fn(const dmnsn_object *sphere,
- dmnsn_vector point);
+static bool dmnsn_sphere_inside_fn(const dmnsn_object *sphere,
+ dmnsn_vector point);
/* Allocate a new sphere */
dmnsn_object *
@@ -81,7 +81,7 @@ dmnsn_sphere_intersection_fn(const dmnsn_object *sphere, dmnsn_line line)
}
/* Return whether a point is inside a sphere (x**2 + y**2 + z**2 < 1.0) */
-static int
+static bool
dmnsn_sphere_inside_fn(const dmnsn_object *sphere, dmnsn_vector point)
{
return point.x*point.x + point.y*point.y + point.z*point.z < 1.0;