Function aabb3::from_points
[−]
[src]
pub fn from_points<'out, 'a, T>(
out: &'out mut AABB3<T>,
points: &'a [[T; 3]]
) -> &'out mut AABB3<T> where
T: Copy + Num,
Examples
use aabb3::{self, AABB3}; let mut a = aabb3::new_identity(); assert_eq!( aabb3::from_points(&mut a, &[[-1, 1, 0], [1, 1, 0], [1, -1, 0], [-1, -1, 0]]), &aabb3::new([-1, -1, 0], [1, 1, 0]) );