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