summaryrefslogtreecommitdiff
path: root/core/math/bvh_abb.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-09-19 12:19:54 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-09-19 15:08:50 -0500
commit436dcb3286da5cfa7e5249ee323c6970b0ecb58a (patch)
treefa95e28f94c9643e072dbbe5423ed2d459254413 /core/math/bvh_abb.h
parentfd8bd276579faa02f678c3ff61a5ef8da615bfcd (diff)
Remove set_all methods from Vector2/3/4
Diffstat (limited to 'core/math/bvh_abb.h')
-rw-r--r--core/math/bvh_abb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/math/bvh_abb.h b/core/math/bvh_abb.h
index 8a44f1c4da..699f7de604 100644
--- a/core/math/bvh_abb.h
+++ b/core/math/bvh_abb.h
@@ -251,7 +251,9 @@ struct BVH_ABB {
void expand(real_t p_change) {
POINT change;
- change.set_all(p_change);
+ for (int axis = 0; axis < POINT::AXIS_COUNT; ++axis) {
+ change[axis] = p_change;
+ }
grow(change);
}
@@ -262,7 +264,9 @@ struct BVH_ABB {
}
void set_to_max_opposite_extents() {
- neg_max.set_all(FLT_MAX);
+ for (int axis = 0; axis < POINT::AXIS_COUNT; ++axis) {
+ neg_max[axis] = FLT_MAX;
+ }
min = neg_max;
}