diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-05 19:55:46 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-05 19:55:46 -0400 |
commit | cad8a398843dd27cd4f2519b88dde56681f82a41 (patch) | |
tree | 4fdda98184410b5c9950b749414d4219360de047 /libdimension/dimension | |
parent | c8ab44d29c3384210cd8f27533abfd0fb2205cc5 (diff) | |
download | dimension-cad8a398843dd27cd4f2519b88dde56681f82a41.tar.xz |
Make inside_fn's return bool.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/object.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h index e607d8c..bd78a35 100644 --- a/libdimension/dimension/object.h +++ b/libdimension/dimension/object.h @@ -25,6 +25,8 @@ #ifndef DIMENSION_OBJECT_H #define DIMENSION_OBJECT_H +#include <stdbool.h> + /* A type to represent a ray-object intersection */ typedef struct dmnsn_intersection { /* The ray and point which intersected */ @@ -51,8 +53,8 @@ typedef struct dmnsn_object dmnsn_object; typedef dmnsn_intersection * dmnsn_object_intersection_fn(const dmnsn_object *object, dmnsn_line line); -typedef int dmnsn_object_inside_fn(const dmnsn_object *object, - dmnsn_vector point); +typedef bool dmnsn_object_inside_fn(const dmnsn_object *object, + dmnsn_vector point); /* dmnsn_object definition */ struct dmnsn_object { |