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