Skip to content

Commit e967a83

Browse files
Apply suggestions from code review
Co-authored-by: Grindv1k <torstein.grindvik@gmail.com>
1 parent 924cc5a commit e967a83

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_geometry/src

1 file changed

+2
-2
lines changed

crates/bevy_geometry/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Sphere {
5959
}
6060
}
6161
impl Primitive3d for Sphere {
62-
/// Use the sphere's position and radius to determin eif it is entirely on the outside of the
62+
/// Use the sphere's position and radius to determine if it is entirely on the outside of the
6363
/// the supplied plane.
6464
fn outside_plane(&self, plane: Plane) -> bool {
6565
plane.distance_to_point(self.origin) > self.radius
@@ -188,7 +188,7 @@ impl AABB {
188188
Err(PrimitiveError::NonPositiveExtents)
189189
}
190190
}
191-
/// Computes the AAB that
191+
/// Computes the [AxisAlignedBox] whose extents are determined by the minimum and maximum of the points given.
192192
pub fn from_points(points: &[Vec3]) -> AABB {
193193
let mut max = Vec3::splat(f32::MIN);
194194
let mut min = Vec3::splat(f32::MAX);

0 commit comments

Comments
 (0)