projects
/
MicroTrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Scene::CalcBounds(), including Box::Extend(Box&), Box::Clear()
[MicroTrace.git]
/
Box.cxx
diff --git
a/Box.cxx
b/Box.cxx
index
d421525
..
febe7c7
100644
(file)
--- a/
Box.cxx
+++ b/
Box.cxx
@@
-31,6
+31,8
@@
Box::operator=(const Box& b)
void
Box::Clear()
{
+ m_min = Vec3f(Infinity, Infinity, Infinity);
+ m_max = Vec3f(-Infinity, -Infinity, -Infinity);
}
void
@@
-49,6
+51,8
@@
Box::Extend(const Vec3f& a)
void
Box::Extend(const Box& box)
{
+ Extend(box.min());
+ Extend(box.max());
}
bool Box::OverlapsHelper(Box b) const {
This page took
0.021009 seconds
and
4
git commands to generate.