From 67b751ff2cd9be642600ac6208aab7a0144f4270 Mon Sep 17 00:00:00 2001 From: Daniel Oom Date: Mon, 25 Mar 2024 14:12:42 +0100 Subject: [PATCH] Remove unused clamp function --- geometry/src/aabb.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/geometry/src/aabb.rs b/geometry/src/aabb.rs index 74e3bbaf..bb2328f1 100644 --- a/geometry/src/aabb.rs +++ b/geometry/src/aabb.rs @@ -68,10 +68,6 @@ impl Aabb { } } - pub fn clamp(&self, v: Vector3) -> Vector3 { - nalgebra::clamp(v, self.min(), self.max()) - } - pub fn split(&self, plane: &Aap) -> (Aabb, Aabb) { let fst_half_axis = (plane.distance - self.min()[plane.axis]) / 2.; let snd_half_axis = (self.max()[plane.axis] - plane.distance) / 2.;