summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-06 13:07:50 -0600
committerTavian Barnes <tavianator@gmail.com>2010-06-06 13:07:50 -0600
commit347f6268b922012055fbe77bb4ce9962cbdeb18e (patch)
tree438fd9532755bc956ee7860e9a6388043e395802 /libdimension/prtree.c
parent07806324bb384d3707840303e08f209005afaffe (diff)
downloaddimension-347f6268b922012055fbe77bb4ce9962cbdeb18e.tar.xz
New dmnsn_bounding_box_is_infinite() predicate.
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r--libdimension/prtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c
index d36e54a..15bc997 100644
--- a/libdimension/prtree.c
+++ b/libdimension/prtree.c
@@ -451,7 +451,7 @@ dmnsn_split_unbounded(dmnsn_list *objects)
dmnsn_object *object;
dmnsn_list_get(i, &object);
- if (isinf(object->bounding_box.min.x)) {
+ if (dmnsn_bounding_box_is_infinite(object->bounding_box)) {
dmnsn_list_iterator *next = dmnsn_list_next(i);
dmnsn_list_iterator_remove(objects, i);
dmnsn_list_iterator_insert(unbounded, NULL, i);