1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
27 // A field of view, given by 4 degrees describing the view from a center point.
28 struct VRFieldOfView {
35 // A sensor's position, orientation, velocity, and acceleration state at the
37 struct VRSensorState {
40 VRVector4? orientation;
42 VRVector3? angularVelocity;
43 VRVector3? linearVelocity;
44 VRVector3? angularAcceleration;
45 VRVector3? linearAcceleration;
48 // Information about the optical properties for an eye in an HMD.
49 struct VREyeParameters {
50 VRFieldOfView minimumFieldOfView;
51 VRFieldOfView maximumFieldOfView;
52 VRFieldOfView recommendedFieldOfView;
53 VRVector3 eyeTranslation;
57 // Information pertaining to Head Mounted Displays.
59 VREyeParameters leftEye;
60 VREyeParameters rightEye;
70 GetDevices() => (array<VRDeviceInfo> devices);
71 GetSensorState(uint32 index) => (VRSensorState state);
72 ResetSensor(uint32 index);