aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/waabb.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-10-06 10:46:59 +0200
committerCrozet Sébastien <developer@crozet.re>2020-10-06 10:46:59 +0200
commit8e432b298bd71df7d1b776b77c15713d9bea280e (patch)
tree5f3490e347286d1a4c2301d3fe43346869d1449e /src/geometry/waabb.rs
parent721db2d49e06de38a16320425f77986b308445dc (diff)
downloadrapier-8e432b298bd71df7d1b776b77c15713d9bea280e.tar.gz
rapier-8e432b298bd71df7d1b776b77c15713d9bea280e.tar.bz2
rapier-8e432b298bd71df7d1b776b77c15713d9bea280e.zip
Make the WQuadTree more generic and use it as the trimesh acceleration structure.
Diffstat (limited to 'src/geometry/waabb.rs')
-rw-r--r--src/geometry/waabb.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/geometry/waabb.rs b/src/geometry/waabb.rs
index 1706370..cc420d9 100644
--- a/src/geometry/waabb.rs
+++ b/src/geometry/waabb.rs
@@ -156,7 +156,7 @@ impl WAABB {
}
#[cfg(feature = "dim2")]
- pub fn contains_lanewise(&self, other: &WAABB) -> SimdBool {
+ pub fn contains(&self, other: &WAABB) -> SimdBool {
self.mins.x.simd_le(other.mins.x)
& self.mins.y.simd_le(other.mins.y)
& self.maxs.x.simd_ge(other.maxs.x)
@@ -164,7 +164,7 @@ impl WAABB {
}
#[cfg(feature = "dim3")]
- pub fn contains_lanewise(&self, other: &WAABB) -> SimdBool {
+ pub fn contains(&self, other: &WAABB) -> SimdBool {
self.mins.x.simd_le(other.mins.x)
& self.mins.y.simd_le(other.mins.y)
& self.mins.z.simd_le(other.mins.z)
@@ -174,7 +174,7 @@ impl WAABB {
}
#[cfg(feature = "dim2")]
- pub fn intersects_lanewise(&self, other: &WAABB) -> SimdBool {
+ pub fn intersects(&self, other: &WAABB) -> SimdBool {
self.mins.x.simd_le(other.maxs.x)
& other.mins.x.simd_le(self.maxs.x)
& self.mins.y.simd_le(other.maxs.y)
@@ -182,7 +182,7 @@ impl WAABB {
}
#[cfg(feature = "dim3")]
- pub fn intersects_lanewise(&self, other: &WAABB) -> SimdBool {
+ pub fn intersects(&self, other: &WAABB) -> SimdBool {
self.mins.x.simd_le(other.maxs.x)
& other.mins.x.simd_le(self.maxs.x)
& self.mins.y.simd_le(other.maxs.y)