]>
Commit | Line | Data |
---|---|---|
49aad941 | 1 | #![allow(unused_imports)] |
fe692bf9 | 2 | #![allow(clippy::all)] |
49aad941 FG |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; | |
5 | #[wasm_bindgen] | |
6 | extern "C" { | |
7 | # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRPose , typescript_type = "VRPose")] | |
8 | #[derive(Debug, Clone, PartialEq, Eq)] | |
9 | #[doc = "The `VrPose` class."] | |
10 | #[doc = ""] | |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose)"] | |
12 | #[doc = ""] | |
13 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
14 | pub type VrPose; | |
15 | # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = position)] | |
16 | #[doc = "Getter for the `position` field of this object."] | |
17 | #[doc = ""] | |
18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/position)"] | |
19 | #[doc = ""] | |
20 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
21 | pub fn position(this: &VrPose) -> Result<Option<Vec<f32>>, JsValue>; | |
22 | # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = linearVelocity)] | |
23 | #[doc = "Getter for the `linearVelocity` field of this object."] | |
24 | #[doc = ""] | |
25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearVelocity)"] | |
26 | #[doc = ""] | |
27 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
28 | pub fn linear_velocity(this: &VrPose) -> Result<Option<Vec<f32>>, JsValue>; | |
29 | # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = linearAcceleration)] | |
30 | #[doc = "Getter for the `linearAcceleration` field of this object."] | |
31 | #[doc = ""] | |
32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearAcceleration)"] | |
33 | #[doc = ""] | |
34 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
35 | pub fn linear_acceleration(this: &VrPose) -> Result<Option<Vec<f32>>, JsValue>; | |
36 | # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = orientation)] | |
37 | #[doc = "Getter for the `orientation` field of this object."] | |
38 | #[doc = ""] | |
39 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/orientation)"] | |
40 | #[doc = ""] | |
41 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
42 | pub fn orientation(this: &VrPose) -> Result<Option<Vec<f32>>, JsValue>; | |
43 | # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = angularVelocity)] | |
44 | #[doc = "Getter for the `angularVelocity` field of this object."] | |
45 | #[doc = ""] | |
46 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularVelocity)"] | |
47 | #[doc = ""] | |
48 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
49 | pub fn angular_velocity(this: &VrPose) -> Result<Option<Vec<f32>>, JsValue>; | |
50 | # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = angularAcceleration)] | |
51 | #[doc = "Getter for the `angularAcceleration` field of this object."] | |
52 | #[doc = ""] | |
53 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularAcceleration)"] | |
54 | #[doc = ""] | |
55 | #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] | |
56 | pub fn angular_acceleration(this: &VrPose) -> Result<Option<Vec<f32>>, JsValue>; | |
57 | } |