Skip to content

Commit f3e34b7

Browse files
committed
Fix Geometry::compute_aabb does not require mut reference
1 parent 09fd6ce commit f3e34b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geometry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Geometry {
4444
///
4545
/// Computes the [AxisAlignedBoundingBox] for this geometry.
4646
///
47-
pub fn compute_aabb(&mut self) -> AxisAlignedBoundingBox {
47+
pub fn compute_aabb(&self) -> AxisAlignedBoundingBox {
4848
match self {
4949
Self::Triangles(mesh) => mesh.compute_aabb(),
5050
Self::Points(point_cloud) => point_cloud.compute_aabb(),

0 commit comments

Comments
 (0)