We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b713315 commit 3a91c75Copy full SHA for 3a91c75
1 file changed
splashsurf_lib/src/aabb.rs
@@ -171,10 +171,10 @@ where
171
&self.min + (self.extents() / (R::one() + R::one()))
172
}
173
174
- /// Checks if the given point is inside or on the boundary of the AABB
+ /// Checks if the given point is inside of the AABB, the AABB is considered to be half-open to its max coordinate
175
pub fn contains_point(&self, point: &VectorN<R, D>) -> bool {
176
for i in 0..D::dim() {
177
- if point[i] <= self.min[i] || point[i] >= self.max[i] {
+ if point[i] < self.min[i] || point[i] >= self.max[i] {
178
return false;
179
180
0 commit comments