web_sys/features/
gen_XrRigidTransform.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRigidTransform , typescript_type = "XRRigidTransform")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `XrRigidTransform` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type XrRigidTransform;
19 #[cfg(web_sys_unstable_apis)]
20 #[cfg(feature = "DomPointReadOnly")]
21 # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = position)]
22 #[doc = "Getter for the `position` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/position)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`, `XrRigidTransform`*"]
27 #[doc = ""]
28 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
30 pub fn position(this: &XrRigidTransform) -> DomPointReadOnly;
31 #[cfg(web_sys_unstable_apis)]
32 #[cfg(feature = "DomPointReadOnly")]
33 # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = orientation)]
34 #[doc = "Getter for the `orientation` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/orientation)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`, `XrRigidTransform`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 pub fn orientation(this: &XrRigidTransform) -> DomPointReadOnly;
43 #[cfg(web_sys_unstable_apis)]
44 # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = matrix)]
45 #[doc = "Getter for the `matrix` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/matrix)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"]
50 #[doc = ""]
51 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 pub fn matrix(this: &XrRigidTransform) -> ::alloc::vec::Vec<f32>;
54 #[cfg(web_sys_unstable_apis)]
55 # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = inverse)]
56 #[doc = "Getter for the `inverse` field of this object."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/inverse)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"]
61 #[doc = ""]
62 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
64 pub fn inverse(this: &XrRigidTransform) -> XrRigidTransform;
65 #[cfg(web_sys_unstable_apis)]
66 #[wasm_bindgen(catch, constructor, js_class = "XRRigidTransform")]
67 #[doc = "The `new XrRigidTransform(..)` constructor, creating a new instance of `XrRigidTransform`."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/XRRigidTransform)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"]
72 #[doc = ""]
73 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
75 pub fn new() -> Result<XrRigidTransform, JsValue>;
76 #[cfg(web_sys_unstable_apis)]
77 #[cfg(feature = "DomPointInit")]
78 #[wasm_bindgen(catch, constructor, js_class = "XRRigidTransform")]
79 #[doc = "The `new XrRigidTransform(..)` constructor, creating a new instance of `XrRigidTransform`."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/XRRigidTransform)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `XrRigidTransform`*"]
84 #[doc = ""]
85 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
87 pub fn new_with_position(position: &DomPointInit) -> Result<XrRigidTransform, JsValue>;
88 #[cfg(web_sys_unstable_apis)]
89 #[cfg(feature = "DomPointInit")]
90 #[wasm_bindgen(catch, constructor, js_class = "XRRigidTransform")]
91 #[doc = "The `new XrRigidTransform(..)` constructor, creating a new instance of `XrRigidTransform`."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/XRRigidTransform)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `XrRigidTransform`*"]
96 #[doc = ""]
97 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
98 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
99 pub fn new_with_position_and_orientation(
100 position: &DomPointInit,
101 orientation: &DomPointInit,
102 ) -> Result<XrRigidTransform, JsValue>;
103}