mod test_parameters; use test_parameters::P; use gpurs::geo::{ Vec3h, Transform3h }; #[test] fn transform_test() { let i_vec: Vec3h
= Vec3h::
::i(); let rotate: Transform3h
= Transform3h::
::rotation_z(std::f64::consts::PI as P / 2.0); let scale: Transform3h
= Transform3h::
::scale(2.0); let translate: Transform3h
= Transform3h::
::translate(-1.0, 0.0, 1.0); let transform: Transform3h
= translate * (scale * rotate); println!("{:?}", &transform * &i_vec); }