aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/AABox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dep/g3dlite/source/AABox.cpp')
-rw-r--r--dep/g3dlite/source/AABox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dep/g3dlite/source/AABox.cpp b/dep/g3dlite/source/AABox.cpp
index 035497aa3c4..8e66456c013 100644
--- a/dep/g3dlite/source/AABox.cpp
+++ b/dep/g3dlite/source/AABox.cpp
@@ -282,6 +282,10 @@ bool AABox::culledBy(
return false;
}
+void AABox::getBounds(Sphere& s) const {
+ s.center = center();
+ s.radius = extent().length() / 2;
+}
bool AABox::intersects(const class Sphere& sphere) const {
double d = 0;