mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #23292 - Manishearth:input, r=asajeffrey
Add support for XRInputSource and target ray spaces Untested, but compiles. r? @jdm or @asajeffrey <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23292) <!-- Reviewable:end -->
This commit is contained in:
commit
670a32c9e9
19 changed files with 315 additions and 37 deletions
|
@ -94,7 +94,7 @@ impl XRRigidTransformMethods for XRRigidTransform {
|
|||
}
|
||||
// https://immersive-web.github.io/webxr/#dom-xrrigidtransform-orientation
|
||||
fn Orientation(&self) -> DomRoot<DOMPointReadOnly> {
|
||||
self.position.or_init(|| {
|
||||
self.orientation.or_init(|| {
|
||||
let r = &self.transform.rotation;
|
||||
DOMPointReadOnly::new(&self.global(), r.i, r.j, r.k, r.r)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue