Function aabb3::new [] [src]

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

Examples

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