blob: 290203afaa14613825dce3dc6f219ff75e2befc9 [file] [log] [blame]
// 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();
[RaisesException] constructor(DOMPointInit origin);
[RaisesException] constructor(DOMPointInit origin, DOMPointInit direction);
[RaisesException] constructor(XRRigidTransform transform);
[SameObject] readonly attribute DOMPointReadOnly origin;
[SameObject] readonly attribute DOMPointReadOnly direction;
[SameObject] readonly attribute Float32Array matrix;
};