|
@@ -124,7 +124,7 @@ interface XRWebGLLayer {
|
|
}
|
|
}
|
|
|
|
|
|
declare class XRRigidTransform {
|
|
declare class XRRigidTransform {
|
|
- constructor(matrix: Float32Array);
|
|
|
|
|
|
+ constructor(matrix: Float32Array | DOMPointInit, direction?: DOMPointInit);
|
|
position: DOMPointReadOnly;
|
|
position: DOMPointReadOnly;
|
|
orientation: DOMPointReadOnly;
|
|
orientation: DOMPointReadOnly;
|
|
matrix: Float32Array;
|
|
matrix: Float32Array;
|
|
@@ -150,7 +150,7 @@ interface XRInputSourceEvent extends Event {
|
|
|
|
|
|
// Experimental(er) features
|
|
// Experimental(er) features
|
|
declare class XRRay {
|
|
declare class XRRay {
|
|
- constructor(transformOrOrigin: XRRigidTransform | DOMPointReadOnly, direction?: DOMPointReadOnly);
|
|
|
|
|
|
+ constructor(transformOrOrigin: XRRigidTransform | DOMPointInit, direction?: DOMPointInit);
|
|
origin: DOMPointReadOnly;
|
|
origin: DOMPointReadOnly;
|
|
direction: DOMPointReadOnly;
|
|
direction: DOMPointReadOnly;
|
|
matrix: Float32Array;
|
|
matrix: Float32Array;
|