Skip to content

Commit

Permalink
Bugfix ball aabb intersection part 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Jan 7, 2025
1 parent 334e727 commit 5b8c7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ impl<T: BHValue, const D: usize> AabbIntersection<T, D> for Ball<T, D> {
}

// Then test if that point is in/on the ball.
distance_squared <= self.radius
distance_squared <= self.radius.powi(2)
}
}

0 comments on commit 5b8c7a4

Please sign in to comment.