|
|
@ -45,7 +45,7 @@ public: |
|
|
|
|
|
|
|
void intersect(const AABB& other) |
|
|
|
{ |
|
|
|
for (int i = 0; i < 3; i++){ |
|
|
|
for (int i = 0; i < 3; i++) { |
|
|
|
min(i) = std::max(min(i), other.min(i)); |
|
|
|
max(i) = std::min(max(i), other.max(i)); |
|
|
|
} |
|
|
@ -59,7 +59,7 @@ public: |
|
|
|
|
|
|
|
void operator+=(const uvector3& offset) |
|
|
|
{ |
|
|
|
for (int i = 0; i < 3; i++){ |
|
|
|
for (int i = 0; i < 3; i++) { |
|
|
|
min(i) += offset(i); |
|
|
|
max(i) += offset(i); |
|
|
|
} |
|
|
|