mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add XRPose.transform
This commit is contained in:
parent
e1f0ad7b7c
commit
f9c25c612a
4 changed files with 34 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue