aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/AABox.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-09-03 15:51:34 +0100
committerNay <dnpd.dd@gmail.com>2012-09-03 15:51:34 +0100
commitc7fed98b9ddef32b7c17d6022435b5bf8c4fa3f5 (patch)
tree3ae3947ff14a14208f6ece4e635f0b5641c8c9d3 /dep/g3dlite/source/AABox.cpp
parentffe8c75f17aa4c4059771265dd408055cb3c4e52 (diff)
parent0db5573d4de436cf14c9f6d113a28800fa278c2c (diff)
Merge remote-tracking branch 'origin/master' into mmaps
Conflicts: dep/PackageList.txt
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;