Skip to content

Commit

Permalink
Remove unused clamp function
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Oom committed Mar 25, 2024
1 parent f79e75f commit 67b751f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions geometry/src/aabb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ impl Aabb {
}
}

pub fn clamp(&self, v: Vector3<f32>) -> Vector3<f32> {
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.;
Expand Down

0 comments on commit 67b751f

Please sign in to comment.