aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/AABox.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-09-03 16:11:46 +0100
committerNay <dnpd.dd@gmail.com>2012-09-03 16:11:46 +0100
commit874ddcb0aede1fb8a3d8077bc11f08203e80b6ba (patch)
tree78ec500df7858b45ed4c64d05ef135eaffa400f2 /dep/g3dlite/source/AABox.cpp
parentdba602ea1617c42c95fa9703d53f4af0a2b3f35d (diff)
parent0db5573d4de436cf14c9f6d113a28800fa278c2c (diff)
Merge remote-tracking branch 'origin/master' into 4.3.4
Conflicts: dep/PackageList.txt src/tools/map_extractor/System.cpp
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;