| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://immersive-web.github.io/webxr/#xrray-interface |
| [ |
| SecureContext, |
| Exposed=Window, |
| RuntimeEnabled=WebXRHitTest |
| ] interface XRRay { |
| [RaisesException] constructor(optional DOMPointInit origin = {}, optional XRRayDirectionInit direction = {}); |
| [RaisesException] constructor(XRRigidTransform transform); |
| [SameObject] readonly attribute DOMPointReadOnly origin; |
| [SameObject] readonly attribute DOMPointReadOnly direction; |
| [SameObject] readonly attribute Float32Array matrix; |
| }; |