Function aabb2::new [] [src]

pub fn new<T>(min: [T; 2], max: [T; 2]) -> AABB2<T> where
    T: Copy + Num

Examples

use aabb2::{self, AABB2};
assert_eq!(&aabb2::new([0, 0], [1, 1]), &AABB2{ min: [0, 0], max: [1, 1] });