Add XRPose.transform

This commit is contained in:
Manish Goregaokar 2019-04-03 10:46:41 -07:00
parent e1f0ad7b7c
commit f9c25c612a
4 changed files with 34 additions and 5 deletions

View file

@ -65,7 +65,11 @@ impl XRView {
};
let offset = Vector3D::new(offset[0] as f64, offset[1] as f64, offset[2] as f64);
let view = pose.post_mul(&offset.into()).to_transform().cast().to_column_major_array();
let view = pose
.post_mul(&offset.into())
.to_transform()
.cast()
.to_column_major_array();
let cx = global.get_cx();
unsafe {