mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update XRRay semantics
Implements changes from https://github.com/immersive-web/hit-test/pull/85
This commit is contained in:
parent
7dd2a71d6d
commit
83f92a3181
2 changed files with 27 additions and 9 deletions
|
@ -4,10 +4,17 @@
|
|||
|
||||
// https://immersive-web.github.io/hit-test/#xrray-interface
|
||||
|
||||
dictionary XRRayDirectionInit {
|
||||
double x = 0;
|
||||
double y = 0;
|
||||
double z = -1;
|
||||
double w = 0;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
interface XRRay {
|
||||
constructor(optional DOMPointInit origin = {}, optional DOMPointInit direction = {});
|
||||
constructor(XRRigidTransform transform);
|
||||
[Throws] constructor(optional DOMPointInit origin = {}, optional XRRayDirectionInit direction = {});
|
||||
[Throws] constructor(XRRigidTransform transform);
|
||||
[SameObject] readonly attribute DOMPointReadOnly origin;
|
||||
[SameObject] readonly attribute DOMPointReadOnly direction;
|
||||
[SameObject] readonly attribute Float32Array matrix;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue