blob: 84bd98a9f09bb473fe1eb51c1a489228f5f19454 [file] [log] [blame]
// Copyright 2019 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/#xrrigidtransform-interface
[
SecureContext,
Exposed=Window,
RuntimeEnabled=WebXR
] interface XRRigidTransform {
[RaisesException] constructor(optional DOMPointInit position = {}, optional DOMPointInit orientation = {});
[SameObject] readonly attribute DOMPointReadOnly position;
[SameObject] readonly attribute DOMPointReadOnly orientation;
[SameObject] readonly attribute Float32Array matrix;
[SameObject] readonly attribute XRRigidTransform inverse;
};