| // Copyright 2016 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. |
| |
| // http://mozvr.github.io/webvr-spec/webvr.html#vrstageparameters |
| [ |
| RuntimeEnabled=WebVR |
| ] interface VRStageParameters { |
| // A 16 element array containing the components of a 4x4 transform |
| // matrix. This matrix transforms the sitting space position |
| // returned by get{Immediate}Pose() to a standing space position. |
| readonly attribute Float32Array sittingToStandingTransform; |
| |
| // Dimensions of the play area bounds. The bounds are defined |
| // as an axis aligned rectangle on the floor. |
| // The center of the rectangle is at (0,0,0) in standing space |
| // coordinates. |
| // These bounds are defined for safety purposes. |
| // Content should not require the user to move beyond these |
| // bounds; however, it is possible for the user to ignore |
| // the bounds resulting in position values outside of |
| // this rectangle. |
| readonly attribute float sizeX; |
| readonly attribute float sizeZ; |
| }; |