Function aabb3::set_identity[][src]

pub fn set_identity<'out, T>(out: &'out mut AABB3<T>) -> &'out mut AABB3<T> where
    T: Clone + Bounded

Examples

use aabb3::{self, AABB3};
let mut a = aabb3::new_identity::<u8>();
assert_eq!(
    aabb3::set_identity(&mut a),
    &AABB3{ min: [255, 255, 255], max: [0, 0, 0] }
);