diff options
author | Nay <dnpd.dd@gmail.com> | 2012-09-03 15:39:07 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2012-09-03 15:39:07 +0100 |
commit | 0db5573d4de436cf14c9f6d113a28800fa278c2c (patch) | |
tree | 884581461cb17266400355c3152a2c9be81cadc2 /dep/g3dlite/source/AABox.cpp | |
parent | 5f6e190a9677cda78d6b975f46df979941bb6f1f (diff) |
Core/Dependencies: Update G3D to version 8.01
Diffstat (limited to 'dep/g3dlite/source/AABox.cpp')
-rw-r--r-- | dep/g3dlite/source/AABox.cpp | 4 |
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; |