pub fn enlarge(self, distance: FreeCoordinate) -> Self {
        // We could imagine a non-uniform version of this, but the fully general one
        // looks a lot like generally constructing a new Aab.
        assert!(
            distance >= 0.0,
            "distance must be nonnegative, not {}",
            distance
        );
        let distance_vec = Vector3::new(1.0, 1.0, 1.0) * distance;
        Self::from_lower_upper(
            self.lower_bounds - distance_vec,
            self.upper_bounds + distance_vec,
        )
    }
/// Enlarges the AAB by moving each face outward by the specified distance.
///
/// Panics if the distance is negative or NaN.
/// (Shrinking requires considering the error case of shrinking to zero, so that
/// will be a separate operation).
///
/// ```
/// use all_is_cubes::math::Aab;
///
/// assert_eq!(
///     Aab::new(1.0, 2.0, 3.0, 4.0, 5.0, 6.0).enlarge(0.25),
///     Aab::new(0.75, 2.25, 2.75, 4.25, 4.75, 6.25)
/// );
/// ````
Enlarges the AAB by moving each face outward by the specified distance.
Panics if the distance is negative or NaN.
(Shrinking requires considering the error case of shrinking to zero, so that
will be a separate operation).




Enlarges the AAB by moving each face outward by the specified distance . Panics if the distance is negative or NaN . ( Shrinking requires considering the error case of shrinking to zero so that will be a separate operation ) .
pub fn enlarge(self, distance: FreeCoordinate) -> Self {
        // We could imagine a non-uniform version of this, but the fully general one
        // looks a lot like generally constructing a new Aab.
        assert!(
            distance >= 0.0,
            "distance must be nonnegative, not {}",
            distance
        );
        let distance_vec = Vector3::new(1.0, 1.0, 1.0) * distance;
        Self::from_lower_upper(
            self.lower_bounds - distance_vec,
            self.upper_bounds + distance_vec,
        )
    }
pub fn enlarge ( self , distance : FreeCoordinate ) -> Self { // We could imagine a non-uniform version of this, but the fully general one // looks a lot like generally constructing a new Aab. assert ! ( distance 0.0 " " distance ) ; let distance_vec = Vector3 :: new ( 1.0 , 1.0 , 1.0 ) * distance ; Self :: from_lower_upper ( self . lower_bounds - distance_vec , self . upper_bounds + distance_vec , ) }
Enlarges the AAB by moving each face outward by the specified distance.
Enlarges the AAB by moving each face outward by the specified distance .
self
distance
FreeCoordinate