File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl Sphere {
59
59
}
60
60
}
61
61
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
63
63
/// the supplied plane.
64
64
fn outside_plane ( & self , plane : Plane ) -> bool {
65
65
plane. distance_to_point ( self . origin ) > self . radius
@@ -188,7 +188,7 @@ impl AABB {
188
188
Err ( PrimitiveError :: NonPositiveExtents )
189
189
}
190
190
}
191
- /// Computes the AAB that
191
+ /// Computes the [AxisAlignedBox] whose extents are determined by the minimum and maximum of the points given.
192
192
pub fn from_points ( points : & [ Vec3 ] ) -> AABB {
193
193
let mut max = Vec3 :: splat ( f32:: MIN ) ;
194
194
let mut min = Vec3 :: splat ( f32:: MAX ) ;
You can’t perform that action at this time.
0 commit comments