Browse Source

empty

master
gjj 9 months ago
parent
commit
8632c72421
  1. 4
      algoim/organizer/minimalPrimitive.hpp

4
algoim/organizer/minimalPrimitive.hpp

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

Loading…
Cancel
Save