engage/generated/unity_engine/experimental/rendering/universal/lib_tess_dot_net/
vec3.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-vec3-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/lib_tess_dot_net/vec3/Vec3.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct Vec3 {
17 pub x: f32,
18 pub y: f32,
19 pub z: f32,
20 }
21 impl ::unity::ClassIdentity for Vec3 {
22 const NAME: &'static str = "Vec3";
23 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal.LibTessDotNet";
24
25 fn class() -> ::unity::Class {
26 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
27 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
28 }
29 }
30 impl ::unity::IlType for Vec3 {
31 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
32 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
33 }
34 }
35 impl Vec3 {
36 #[inline]
37 pub fn zero() -> crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3 {
38 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
39 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Zero");
40 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
41 }
42
43 #[inline]
44 pub fn set_zero(value: crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3) {
45 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
46 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Zero");
47 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
48 }
49 }
50}
51
52#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-vec3-types")]
53pub use __types::*;
54
55#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-vec3")]
56impl Vec3 {
57 #[doc = "`Sub(*mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3, *mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3, *mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)` overload"]
58 pub fn sub() -> (
59 crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3,
60 crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3,
61 crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3,
62 ) {
63 unsafe {
64 let mut __out_0 =
65 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
66 let mut __out_1 =
67 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
68 let mut __out_2 =
69 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
70 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0ce0usize)as*mut u8,();
71(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_1.as_mut_ptr(),(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_2.as_mut_ptr());
72 (__out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init())
73 }
74 }
75
76 #[doc = "`Neg(*mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)` overload"]
77 pub fn neg() -> crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3 {
78 unsafe {
79 let mut __out_0 =
80 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
81 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0d20usize)as*mut u8,();
82(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_0.as_mut_ptr());
83 __out_0.assume_init()
84 }
85 }
86
87 #[doc = "`Dot(*mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3, *mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3, *mutf32)` overload"]
88 pub fn dot() -> (
89 crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3,
90 crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3,
91 f32,
92 ) {
93 unsafe {
94 let mut __out_0 =
95 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
96 let mut __out_1 =
97 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
98 let mut __out_2 = ::core::mem::MaybeUninit::<f32>::uninit();
99 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0d50usize)as*mut u8,();
100(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_1.as_mut_ptr(),(*mut f32)__out_2.as_mut_ptr());
101 (__out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init())
102 }
103 }
104
105 #[doc = "`Normalize(*mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)` overload"]
106 pub fn normalize() -> crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3 {
107 unsafe {
108 let mut __out_0 =
109 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
110 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0d80usize)as*mut u8,();
111(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_0.as_mut_ptr());
112 __out_0.assume_init()
113 }
114 }
115
116 #[doc = "`LongAxis(*mutcrate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)` overload"]
117 pub fn long_axis() -> (i32, crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3) {
118 unsafe {
119 let mut __out_0 =
120 ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>::uninit();
121 let __ret = {
122 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0e50usize)as*mut u8,i32;
123(*mut crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)__out_0.as_mut_ptr())
124 };
125 (__ret, __out_0.assume_init())
126 }
127 }
128
129 #[doc = "`.cctor()` overload"]
130 pub fn cctor() -> () {
131 unsafe {
132 ::unity::il2cpp_call!((::unity::module_base()+0x2cb1030usize)as*mut u8,();
133 )
134 }
135 }
136}
137
138#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-vec3")]
139impl Vec3 {
140 #[doc = "`get_Item(i32)` overload"]
141 pub fn get_item(&mut self, index: impl ::core::convert::Into<i32>) -> f32 {
142 unsafe {
143 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0bc0usize)as*mut u8,f32;
144(*mut Vec3)self as*mut Vec3,(i32)::core::convert::Into::into(index))
145 }
146 }
147
148 #[doc = "`set_Item(i32, f32)` overload"]
149 pub fn set_item(&mut self, index: impl ::core::convert::Into<i32>, value: impl ::core::convert::Into<f32>) -> () {
150 unsafe {
151 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0c50usize)as*mut u8,();
152(*mut Vec3)self as*mut Vec3,(i32)::core::convert::Into::into(index),(f32)::core::convert::Into::into(value))
153 }
154 }
155
156 #[doc = "`ToString()` overload"]
157 pub fn to_string(&mut self) -> ::unity::Il2CppString {
158 unsafe {
159 ::unity::il2cpp_call!((::unity::module_base()+0x2cb0f60usize)as*mut u8, ::unity::Il2CppString;
160(*mut Vec3)self as*mut Vec3)
161 }
162 }
163}
164
165#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-vec3")]
166impl Vec3 {
167 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
169 }
170
171 pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
173 }
174
175 pub fn sub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
177 }
178
179 pub fn neg_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
181 }
182
183 pub fn dot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
185 }
186
187 pub fn normalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
189 }
190
191 pub fn long_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
193 }
194
195 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
197 }
198
199 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
201 }
202}
203
204#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-vec3")]
205#[doc(hidden)]
206pub mod prelude {
207 pub use super::Vec3;
208 #[cfg(feature = "system-object")]
209 pub use crate::system::object::IObjectMethods;
210 #[cfg(feature = "system-valuetype")]
211 pub use crate::system::valuetype::IValueTypeMethods;
212 pub use crate::system::{object::IObject, valuetype::IValueType};
213}