mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fix orientation getter in XRRigidTransform
This commit is contained in:
parent
0756923e52
commit
f17f066495
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ impl XRRigidTransformMethods for XRRigidTransform {
|
||||||
}
|
}
|
||||||
// https://immersive-web.github.io/webxr/#dom-xrrigidtransform-orientation
|
// https://immersive-web.github.io/webxr/#dom-xrrigidtransform-orientation
|
||||||
fn Orientation(&self) -> DomRoot<DOMPointReadOnly> {
|
fn Orientation(&self) -> DomRoot<DOMPointReadOnly> {
|
||||||
self.position.or_init(|| {
|
self.orientation.or_init(|| {
|
||||||
let r = &self.transform.rotation;
|
let r = &self.transform.rotation;
|
||||||
DOMPointReadOnly::new(&self.global(), r.i, r.j, r.k, r.r)
|
DOMPointReadOnly::new(&self.global(), r.i, r.j, r.k, r.r)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue