Function aabb3::expand_vector
[−]
[src]
pub fn expand_vector<'out, 'a, 'b, T>(
out: &'out mut AABB3<T>,
aabb3: &'a AABB3<T>,
v: &'b [T; 3]
) -> &'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_vector(&mut a, &b, &[1, 1, 1]), &AABB3{ min: [-2, -2, -2], max: [2, 2, 2] } );