parry3d::utils

Function obb

source
pub fn obb(pts: &[Point<f32>]) -> (Isometry<f32>, Cuboid)
Expand description

Computes an oriented bounding box for the given set of points.

The returned OBB is not guaranteed to be the smallest enclosing OBB. Though it should be a pretty good on for most purposes.