summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-06 17:27:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-06 17:29:25 +0100
commit646f9d9774d72e9459f50726b200a586d7e07614 (patch)
treeb3f0357c62e252298cbe6c5a8ed314373ac2d5cd /compat
parentd73d869bc195bf8dbb7525ce12acf2c2fde56084 (diff)
src/chunk: stick bboxes into the pointer on 64-bit
Diffstat (limited to 'compat')
-rw-r--r--compat/LooseQuadtree-impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/LooseQuadtree-impl.h b/compat/LooseQuadtree-impl.h
index ff25f682..08591072 100644
--- a/compat/LooseQuadtree-impl.h
+++ b/compat/LooseQuadtree-impl.h
@@ -1265,6 +1265,16 @@ void LooseQuadtree<NumberT, ObjectT, BoundingBoxExtractorT>::Query::Next() {
}
+template <typename NumberT>
+struct TrivialBBExtractor {
+ static void ExtractBoundingBox(const BoundingBox<NumberT> *object, BoundingBox<NumberT> *bbox)
+ {
+ bbox->left = object->left;
+ bbox->top = object->top;
+ bbox->width = object->width;
+ bbox->height = object->height;
+ }
+};
} // namespace loose_quadtree