pub fn update_from_bound(reference: &mut Bounds, other: &Bounds) {
        reference.min.x = reference.min.x.min(other.min.x);
        reference.min.y = reference.min.y.min(other.min.y);
        reference.min.z = reference.min.z.min(other.min.z);

        reference.max.x = reference.max.x.max(other.max.x);
        reference.max.y = reference.max.y.max(other.max.y);
        reference.max.z = reference.max.z.max(other.max.z);
    }
// Updates the reference.
//
// Simple logic, but convenient to have it ready.
//
Updates the reference.
Simple logic, but convenient to have it ready.
Updates the reference . Simple logic but convenient to have it ready .
pub fn update_from_bound(reference: &mut Bounds, other: &Bounds) {
        reference.min.x = reference.min.x.min(other.min.x);
        reference.min.y = reference.min.y.min(other.min.y);
        reference.min.z = reference.min.z.min(other.min.z);
        reference.max.x = reference.max.x.max(other.max.x);
        reference.max.y = reference.max.y.max(other.max.y);
        reference.max.z = reference.max.z.max(other.max.z);
    }
pub fn update_from_bound ( reference : & mut Bounds , other : & Bounds ) { reference . min . x = reference . min . x . min ( other . min . x ) ; reference . min . y = reference . min . y . min ( other . min . y ) ; reference . min . z = reference . min . z . min ( other . min . z ) ; reference . max . x = reference . max . x . max ( other . max . x ) ; reference . max . y = reference . max . y . max ( other . max . y ) ; reference . max . z = reference . max . z . max ( other . max . z ) ; }
Updates the reference.
Updates the reference .
reference
&mut Bounds
other
&Bounds