Function aabb2::copy [] [src]

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

Examples

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