Function aabb3::expand_scalar
[−]
[src]
pub fn expand_scalar<'out, 'a, T>(
out: &'out mut AABB3<T>,
aabb3: &'a AABB3<T>,
s: T
) -> &'out mut AABB3<T> where
T: Copy + Num,
Examples
use aabb3::{self, AABB3}; let mut a = aabb3::new_identity(); let b = aabb3::new([-1, -1, -1], [1, 1, 1]); assert_eq!( aabb3::expand_scalar(&mut a, &b, 1), &AABB3{ min: [-2, -2, -2], max: [2, 2, 2] } );