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