///
/// Expands the bounding box such that all of the given positions are contained inside the bounding box.
/// A position consisting of an x, y and z coordinate corresponds to three consecutive value in the positions array.
///
Expands the bounding box such that all of the given positions are contained inside the bounding box.
A position consisting of an x, y and z coordinate corresponds to three consecutive value in the positions array.
Expands the bounding box such that all of the given positions are contained inside the bounding box . A position consisting of an x y and z coordinate corresponds to three consecutive value in the positions array .
pub fn expand(&mut self, positions: &[Vec3]) {
        for p in positions {
            self.min.x = self.min.x.min(p.x);
            self.min.y = self.min.y.min(p.y);
            self.min.z = self.min.z.min(p.z);
            self.max.x = self.max.x.max(p.x);
            self.max.y = self.max.y.max(p.y);
            self.max.z = self.max.z.max(p.z);
        }
    }
pub fn expand ( & mut self , positions : & [ Vec3 ] ) { for p in positions { self . min . x = self . min . x . min ( p . x ) ; self . min . y = self . min . y . min ( p . y ) ; self . min . z = self . min . z . min ( p . z ) ; self . max . x = self . max . x . max ( p . x ) ; self . max . y = self . max . y . max ( p . y ) ; self . max . z = self . max . z . max ( p . z ) ; } }
Expands the bounding box such that all of the given positions are contained inside the bounding box.
Expands the bounding box such that all of the given positions are contained inside the bounding box .
&mut self
positions
&[Vec3]