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