Function aabb3::copy [] [src]

pub fn copy<'out, 'a, T>(
    out: &'out mut AABB3<T>,
    a: &'a AABB3<T>
) -> &'out mut AABB3<T> where
    T: Copy + Num

Examples

use aabb3::{self, AABB3};
let mut a = aabb3::new_identity();
let b = aabb3::new([0, 0, 0], [1, 1, 1]);
assert_eq!(aabb3::copy(&mut a, &b), &AABB3{ min: [0, 0, 0], max: [1, 1, 1] });