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.;