Skip to content

Commit

Permalink
Clean up formula
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Nov 21, 2023
1 parent 684f5e4 commit b34780b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_math/src/primitives/dim3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Sphere {

/// Get the volume of the sphere
pub fn volume(&self) -> f32 {
4.0 * FRAC_PI_3 * self.radius.powi(2) * self.radius
4.0 * FRAC_PI_3 * self.radius.powi(3)
}
}

Expand Down

0 comments on commit b34780b

Please sign in to comment.