1#[cfg(feature = "unity_engine-mathf-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/mathf/Mathf.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct Mathf {}
17 impl ::unity::ClassIdentity for Mathf {
18 const NAME: &'static str = "Mathf";
19 const NAMESPACE: &'static str = "UnityEngine";
20
21 fn class() -> ::unity::Class {
22 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24 }
25 }
26 impl ::unity::IlType for Mathf {
27 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29 }
30 }
31 impl Mathf {
32 #[inline]
33 pub fn epsilon() -> f32 {
34 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
35 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Epsilon");
36 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
37 }
38
39 #[inline]
40 pub fn set_epsilon(value: f32) {
41 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
42 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Epsilon");
43 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
44 }
45 }
46}
47
48#[cfg(feature = "unity_engine-mathf-types")]
49pub use __types::*;
50
51#[cfg(feature = "unity_engine-mathf")]
52impl Mathf {
53 #[doc = "`NextPowerOfTwo(i32)` overload"]
54 pub fn next_power_of_two(value: impl ::core::convert::Into<i32>) -> i32 {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x32ded20usize)as*mut u8,i32;
57(i32)::core::convert::Into::into(value))
58 }
59 }
60
61 #[doc = "`GammaToLinearSpace(f32)` overload"]
62 pub fn gamma_to_linear_space(value: impl ::core::convert::Into<f32>) -> f32 {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x32ded70usize)as*mut u8,f32;
65(f32)::core::convert::Into::into(value))
66 }
67 }
68
69 #[doc = "`LinearToGammaSpace(f32)` overload"]
70 pub fn linear_to_gamma_space(value: impl ::core::convert::Into<f32>) -> f32 {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x32dedc0usize)as*mut u8,f32;
73(f32)::core::convert::Into::into(value))
74 }
75 }
76
77 #[doc = "`FloatToHalf(f32)` overload"]
78 pub fn float_to_half(val: impl ::core::convert::Into<f32>) -> u16 {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x32dee10usize)as*mut u8,u16;
81(f32)::core::convert::Into::into(val))
82 }
83 }
84
85 #[doc = "`PerlinNoise(f32, f32)` overload"]
86 pub fn perlin_noise(x: impl ::core::convert::Into<f32>, y: impl ::core::convert::Into<f32>) -> f32 {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x32dee60usize)as*mut u8,f32;
89(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y))
90 }
91 }
92
93 #[doc = "`Sin(f32)` overload"]
94 pub fn sin(f: impl ::core::convert::Into<f32>) -> f32 {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x32deeb0usize)as*mut u8,f32;
97(f32)::core::convert::Into::into(f))
98 }
99 }
100
101 #[doc = "`Cos(f32)` overload"]
102 pub fn cos(f: impl ::core::convert::Into<f32>) -> f32 {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x32def20usize)as*mut u8,f32;
105(f32)::core::convert::Into::into(f))
106 }
107 }
108
109 #[doc = "`Tan(f32)` overload"]
110 pub fn tan(f: impl ::core::convert::Into<f32>) -> f32 {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x32def90usize)as*mut u8,f32;
113(f32)::core::convert::Into::into(f))
114 }
115 }
116
117 #[doc = "`Asin(f32)` overload"]
118 pub fn asin(f: impl ::core::convert::Into<f32>) -> f32 {
119 unsafe {
120 ::unity::il2cpp_call!((::unity::module_base()+0x32df000usize)as*mut u8,f32;
121(f32)::core::convert::Into::into(f))
122 }
123 }
124
125 #[doc = "`Acos(f32)` overload"]
126 pub fn acos(f: impl ::core::convert::Into<f32>) -> f32 {
127 unsafe {
128 ::unity::il2cpp_call!((::unity::module_base()+0x32df070usize)as*mut u8,f32;
129(f32)::core::convert::Into::into(f))
130 }
131 }
132
133 #[doc = "`Atan(f32)` overload"]
134 pub fn atan(f: impl ::core::convert::Into<f32>) -> f32 {
135 unsafe {
136 ::unity::il2cpp_call!((::unity::module_base()+0x32df0e0usize)as*mut u8,f32;
137(f32)::core::convert::Into::into(f))
138 }
139 }
140
141 #[doc = "`Atan2(f32, f32)` overload"]
142 pub fn atan2(y: impl ::core::convert::Into<f32>, x: impl ::core::convert::Into<f32>) -> f32 {
143 unsafe {
144 ::unity::il2cpp_call!((::unity::module_base()+0x32df150usize)as*mut u8,f32;
145(f32)::core::convert::Into::into(y),(f32)::core::convert::Into::into(x))
146 }
147 }
148
149 #[doc = "`Sqrt(f32)` overload"]
150 pub fn sqrt(f: impl ::core::convert::Into<f32>) -> f32 {
151 unsafe {
152 ::unity::il2cpp_call!((::unity::module_base()+0x32df1d0usize)as*mut u8,f32;
153(f32)::core::convert::Into::into(f))
154 }
155 }
156
157 #[doc = "`Abs(f32)` overload"]
158 pub fn abs(f: impl ::core::convert::Into<f32>) -> f32 {
159 unsafe {
160 ::unity::il2cpp_call!((::unity::module_base()+0x32df260usize)as*mut u8,f32;
161(f32)::core::convert::Into::into(f))
162 }
163 }
164
165 #[doc = "`Abs(i32)` overload"]
166 pub fn abs_2(value: impl ::core::convert::Into<i32>) -> i32 {
167 unsafe {
168 ::unity::il2cpp_call!((::unity::module_base()+0x32df2d0usize)as*mut u8,i32;
169(i32)::core::convert::Into::into(value))
170 }
171 }
172
173 #[doc = "`Min(f32, f32)` overload"]
174 pub fn min(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> f32 {
175 unsafe {
176 ::unity::il2cpp_call!((::unity::module_base()+0x32df340usize)as*mut u8,f32;
177(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
178 }
179 }
180
181 #[doc = "`Min(::unity::Array<f32>)` overload"]
182 pub fn min_2(values: impl ::core::convert::Into<::unity::Array<f32>>) -> f32 {
183 unsafe {
184 ::unity::il2cpp_call!((::unity::module_base()+0x32df350usize)as*mut u8,f32;
185(::unity::Array<f32>)::core::convert::Into::into(values))
186 }
187 }
188
189 #[doc = "`Min(i32, i32)` overload"]
190 pub fn min_3(a: impl ::core::convert::Into<i32>, b: impl ::core::convert::Into<i32>) -> i32 {
191 unsafe {
192 ::unity::il2cpp_call!((::unity::module_base()+0x32df3e0usize)as*mut u8,i32;
193(i32)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
194 }
195 }
196
197 #[doc = "`Max(f32, f32)` overload"]
198 pub fn max(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> f32 {
199 unsafe {
200 ::unity::il2cpp_call!((::unity::module_base()+0x32df3f0usize)as*mut u8,f32;
201(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
202 }
203 }
204
205 #[doc = "`Max(::unity::Array<f32>)` overload"]
206 pub fn max_2(values: impl ::core::convert::Into<::unity::Array<f32>>) -> f32 {
207 unsafe {
208 ::unity::il2cpp_call!((::unity::module_base()+0x32df400usize)as*mut u8,f32;
209(::unity::Array<f32>)::core::convert::Into::into(values))
210 }
211 }
212
213 #[doc = "`Max(i32, i32)` overload"]
214 pub fn max_3(a: impl ::core::convert::Into<i32>, b: impl ::core::convert::Into<i32>) -> i32 {
215 unsafe {
216 ::unity::il2cpp_call!((::unity::module_base()+0x32df490usize)as*mut u8,i32;
217(i32)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
218 }
219 }
220
221 #[doc = "`Max(::unity::Array<i32>)` overload"]
222 pub fn max_4(values: impl ::core::convert::Into<::unity::Array<i32>>) -> i32 {
223 unsafe {
224 ::unity::il2cpp_call!((::unity::module_base()+0x32df4a0usize)as*mut u8,i32;
225(::unity::Array<i32>)::core::convert::Into::into(values))
226 }
227 }
228
229 #[doc = "`Pow(f32, f32)` overload"]
230 pub fn pow(f: impl ::core::convert::Into<f32>, p: impl ::core::convert::Into<f32>) -> f32 {
231 unsafe {
232 ::unity::il2cpp_call!((::unity::module_base()+0x32df530usize)as*mut u8,f32;
233(f32)::core::convert::Into::into(f),(f32)::core::convert::Into::into(p))
234 }
235 }
236
237 #[doc = "`Exp(f32)` overload"]
238 pub fn exp(power: impl ::core::convert::Into<f32>) -> f32 {
239 unsafe {
240 ::unity::il2cpp_call!((::unity::module_base()+0x32df5b0usize)as*mut u8,f32;
241(f32)::core::convert::Into::into(power))
242 }
243 }
244
245 #[doc = "`Log(f32, f32)` overload"]
246 pub fn log(f: impl ::core::convert::Into<f32>, p: impl ::core::convert::Into<f32>) -> f32 {
247 unsafe {
248 ::unity::il2cpp_call!((::unity::module_base()+0x32df620usize)as*mut u8,f32;
249(f32)::core::convert::Into::into(f),(f32)::core::convert::Into::into(p))
250 }
251 }
252
253 #[doc = "`Log(f32)` overload"]
254 pub fn log_2(f: impl ::core::convert::Into<f32>) -> f32 {
255 unsafe {
256 ::unity::il2cpp_call!((::unity::module_base()+0x32df6a0usize)as*mut u8,f32;
257(f32)::core::convert::Into::into(f))
258 }
259 }
260
261 #[doc = "`Ceil(f32)` overload"]
262 pub fn ceil(f: impl ::core::convert::Into<f32>) -> f32 {
263 unsafe {
264 ::unity::il2cpp_call!((::unity::module_base()+0x32df710usize)as*mut u8,f32;
265(f32)::core::convert::Into::into(f))
266 }
267 }
268
269 #[doc = "`Floor(f32)` overload"]
270 pub fn floor(f: impl ::core::convert::Into<f32>) -> f32 {
271 unsafe {
272 ::unity::il2cpp_call!((::unity::module_base()+0x32df780usize)as*mut u8,f32;
273(f32)::core::convert::Into::into(f))
274 }
275 }
276
277 #[doc = "`Round(f32)` overload"]
278 pub fn round(f: impl ::core::convert::Into<f32>) -> f32 {
279 unsafe {
280 ::unity::il2cpp_call!((::unity::module_base()+0x32df7f0usize)as*mut u8,f32;
281(f32)::core::convert::Into::into(f))
282 }
283 }
284
285 #[doc = "`CeilToInt(f32)` overload"]
286 pub fn ceil_to_int(f: impl ::core::convert::Into<f32>) -> i32 {
287 unsafe {
288 ::unity::il2cpp_call!((::unity::module_base()+0x32df8d0usize)as*mut u8,i32;
289(f32)::core::convert::Into::into(f))
290 }
291 }
292
293 #[doc = "`FloorToInt(f32)` overload"]
294 pub fn floor_to_int(f: impl ::core::convert::Into<f32>) -> i32 {
295 unsafe {
296 ::unity::il2cpp_call!((::unity::module_base()+0x32df960usize)as*mut u8,i32;
297(f32)::core::convert::Into::into(f))
298 }
299 }
300
301 #[doc = "`RoundToInt(f32)` overload"]
302 pub fn round_to_int(f: impl ::core::convert::Into<f32>) -> i32 {
303 unsafe {
304 ::unity::il2cpp_call!((::unity::module_base()+0x32df9f0usize)as*mut u8,i32;
305(f32)::core::convert::Into::into(f))
306 }
307 }
308
309 #[doc = "`Sign(f32)` overload"]
310 pub fn sign(f: impl ::core::convert::Into<f32>) -> f32 {
311 unsafe {
312 ::unity::il2cpp_call!((::unity::module_base()+0x32dfae0usize)as*mut u8,f32;
313(f32)::core::convert::Into::into(f))
314 }
315 }
316
317 #[doc = "`Clamp(f32, f32, f32)` overload"]
318 pub fn clamp(value: impl ::core::convert::Into<f32>, min: impl ::core::convert::Into<f32>, max: impl ::core::convert::Into<f32>) -> f32 {
319 unsafe {
320 ::unity::il2cpp_call!((::unity::module_base()+0x32dfb00usize)as*mut u8,f32;
321(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(min),(f32)::core::convert::Into::into(max))
322 }
323 }
324
325 #[doc = "`Clamp(i32, i32, i32)` overload"]
326 pub fn clamp_2(value: impl ::core::convert::Into<i32>, min: impl ::core::convert::Into<i32>, max: impl ::core::convert::Into<i32>) -> i32 {
327 unsafe {
328 ::unity::il2cpp_call!((::unity::module_base()+0x32dfb20usize)as*mut u8,i32;
329(i32)::core::convert::Into::into(value),(i32)::core::convert::Into::into(min),(i32)::core::convert::Into::into(max))
330 }
331 }
332
333 #[doc = "`Clamp01(f32)` overload"]
334 pub fn clamp01(value: impl ::core::convert::Into<f32>) -> f32 {
335 unsafe {
336 ::unity::il2cpp_call!((::unity::module_base()+0x32dfb40usize)as*mut u8,f32;
337(f32)::core::convert::Into::into(value))
338 }
339 }
340
341 #[doc = "`Lerp(f32, f32, f32)` overload"]
342 pub fn lerp(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>, t: impl ::core::convert::Into<f32>) -> f32 {
343 unsafe {
344 ::unity::il2cpp_call!((::unity::module_base()+0x32dfb60usize)as*mut u8,f32;
345(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b),(f32)::core::convert::Into::into(t))
346 }
347 }
348
349 #[doc = "`LerpUnclamped(f32, f32, f32)` overload"]
350 pub fn lerp_unclamped(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>, t: impl ::core::convert::Into<f32>) -> f32 {
351 unsafe {
352 ::unity::il2cpp_call!((::unity::module_base()+0x32dfb90usize)as*mut u8,f32;
353(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b),(f32)::core::convert::Into::into(t))
354 }
355 }
356
357 #[doc = "`LerpAngle(f32, f32, f32)` overload"]
358 pub fn lerp_angle(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>, t: impl ::core::convert::Into<f32>) -> f32 {
359 unsafe {
360 ::unity::il2cpp_call!((::unity::module_base()+0x32dfba0usize)as*mut u8,f32;
361(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b),(f32)::core::convert::Into::into(t))
362 }
363 }
364
365 #[doc = "`MoveTowards(f32, f32, f32)` overload"]
366 pub fn move_towards(
367 current: impl ::core::convert::Into<f32>,
368 target: impl ::core::convert::Into<f32>,
369 max_delta: impl ::core::convert::Into<f32>,
370 ) -> f32 {
371 unsafe {
372 ::unity::il2cpp_call!((::unity::module_base()+0x32dfc40usize)as*mut u8,f32;
373(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target),(f32)::core::convert::Into::into(max_delta))
374 }
375 }
376
377 #[doc = "`MoveTowardsAngle(f32, f32, f32)` overload"]
378 pub fn move_towards_angle(
379 current: impl ::core::convert::Into<f32>,
380 target: impl ::core::convert::Into<f32>,
381 max_delta: impl ::core::convert::Into<f32>,
382 ) -> f32 {
383 unsafe {
384 ::unity::il2cpp_call!((::unity::module_base()+0x32dfc70usize)as*mut u8,f32;
385(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target),(f32)::core::convert::Into::into(max_delta))
386 }
387 }
388
389 #[doc = "`Approximately(f32, f32)` overload"]
390 pub fn approximately(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> bool {
391 unsafe {
392 ::unity::il2cpp_call!((::unity::module_base()+0x32dfd40usize)as*mut u8,bool;
393(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
394 }
395 }
396
397 #[doc = "`SmoothDamp(f32, f32, *mutf32, f32)` overload"]
398 pub fn smooth_damp(
399 current: impl ::core::convert::Into<f32>,
400 target: impl ::core::convert::Into<f32>,
401 smooth_time: impl ::core::convert::Into<f32>,
402 ) -> (f32, f32) {
403 unsafe {
404 let mut __out_0 = ::core::mem::MaybeUninit::<f32>::uninit();
405 let __ret = {
406 ::unity::il2cpp_call!((::unity::module_base()+0x32dfde0usize)as*mut u8,f32;
407(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target),(*mut f32)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(smooth_time))
408 };
409 (__ret, __out_0.assume_init())
410 }
411 }
412
413 #[doc = "`SmoothDamp(f32, f32, *mutf32, f32, f32, f32)` overload"]
414 pub fn smooth_damp_2(
415 current: impl ::core::convert::Into<f32>,
416 target: impl ::core::convert::Into<f32>,
417 smooth_time: impl ::core::convert::Into<f32>,
418 max_speed: impl ::core::convert::Into<f32>,
419 delta_time: impl ::core::convert::Into<f32>,
420 ) -> (f32, f32) {
421 unsafe {
422 let mut __out_0 = ::core::mem::MaybeUninit::<f32>::uninit();
423 let __ret = {
424 ::unity::il2cpp_call!((::unity::module_base()+0x32dff10usize)as*mut u8,f32;
425(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target),(*mut f32)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(smooth_time),(f32)::core::convert::Into::into(max_speed),(f32)::core::convert::Into::into(delta_time))
426 };
427 (__ret, __out_0.assume_init())
428 }
429 }
430
431 #[doc = "`SmoothDampAngle(f32, f32, *mutf32, f32)` overload"]
432 pub fn smooth_damp_angle(
433 current: impl ::core::convert::Into<f32>,
434 target: impl ::core::convert::Into<f32>,
435 smooth_time: impl ::core::convert::Into<f32>,
436 ) -> (f32, f32) {
437 unsafe {
438 let mut __out_0 = ::core::mem::MaybeUninit::<f32>::uninit();
439 let __ret = {
440 ::unity::il2cpp_call!((::unity::module_base()+0x32dfff0usize)as*mut u8,f32;
441(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target),(*mut f32)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(smooth_time))
442 };
443 (__ret, __out_0.assume_init())
444 }
445 }
446
447 #[doc = "`SmoothDampAngle(f32, f32, *mutf32, f32, f32, f32)` overload"]
448 pub fn smooth_damp_angle_2(
449 current: impl ::core::convert::Into<f32>,
450 target: impl ::core::convert::Into<f32>,
451 smooth_time: impl ::core::convert::Into<f32>,
452 max_speed: impl ::core::convert::Into<f32>,
453 delta_time: impl ::core::convert::Into<f32>,
454 ) -> (f32, f32) {
455 unsafe {
456 let mut __out_0 = ::core::mem::MaybeUninit::<f32>::uninit();
457 let __ret = {
458 ::unity::il2cpp_call!((::unity::module_base()+0x32e0170usize)as*mut u8,f32;
459(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target),(*mut f32)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(smooth_time),(f32)::core::convert::Into::into(max_speed),(f32)::core::convert::Into::into(delta_time))
460 };
461 (__ret, __out_0.assume_init())
462 }
463 }
464
465 #[doc = "`Repeat(f32, f32)` overload"]
466 pub fn repeat(t: impl ::core::convert::Into<f32>, length: impl ::core::convert::Into<f32>) -> f32 {
467 unsafe {
468 ::unity::il2cpp_call!((::unity::module_base()+0x32dfc10usize)as*mut u8,f32;
469(f32)::core::convert::Into::into(t),(f32)::core::convert::Into::into(length))
470 }
471 }
472
473 #[doc = "`InverseLerp(f32, f32, f32)` overload"]
474 pub fn inverse_lerp(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>, value: impl ::core::convert::Into<f32>) -> f32 {
475 unsafe {
476 ::unity::il2cpp_call!((::unity::module_base()+0x32e02a0usize)as*mut u8,f32;
477(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b),(f32)::core::convert::Into::into(value))
478 }
479 }
480
481 #[doc = "`DeltaAngle(f32, f32)` overload"]
482 pub fn delta_angle(current: impl ::core::convert::Into<f32>, target: impl ::core::convert::Into<f32>) -> f32 {
483 unsafe {
484 ::unity::il2cpp_call!((::unity::module_base()+0x32dfcf0usize)as*mut u8,f32;
485(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target))
486 }
487 }
488
489 #[doc = "`.cctor()` overload"]
490 pub fn cctor() -> () {
491 unsafe {
492 ::unity::il2cpp_call!((::unity::module_base()+0x32e02d0usize)as*mut u8,();
493 )
494 }
495 }
496}
497
498#[cfg(feature = "unity_engine-mathf")]
499impl Mathf {
500 pub fn next_power_of_two_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
502 }
503
504 pub fn gamma_to_linear_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
506 }
507
508 pub fn linear_to_gamma_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
510 }
511
512 pub fn float_to_half_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
514 }
515
516 pub fn perlin_noise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
518 }
519
520 pub fn sin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
522 }
523
524 pub fn cos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
526 }
527
528 pub fn tan_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
530 }
531
532 pub fn asin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
534 }
535
536 pub fn acos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
538 }
539
540 pub fn atan_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
542 }
543
544 pub fn atan2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
546 }
547
548 pub fn sqrt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
550 }
551
552 pub fn abs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
554 }
555
556 pub fn abs_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
558 }
559
560 pub fn min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
562 }
563
564 pub fn min_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
565 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
566 }
567
568 pub fn min_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
569 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
570 }
571
572 pub fn max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
574 }
575
576 pub fn max_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
578 }
579
580 pub fn max_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
581 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
582 }
583
584 pub fn max_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
585 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
586 }
587
588 pub fn pow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
589 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
590 }
591
592 pub fn exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
594 }
595
596 pub fn log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
598 }
599
600 pub fn log_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
602 }
603
604 pub fn ceil_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
606 }
607
608 pub fn floor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
610 }
611
612 pub fn round_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
614 }
615
616 pub fn ceil_to_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
618 }
619
620 pub fn floor_to_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
622 }
623
624 pub fn round_to_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
626 }
627
628 pub fn sign_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
630 }
631
632 pub fn clamp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
634 }
635
636 pub fn clamp_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
638 }
639
640 pub fn clamp01_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
642 }
643
644 pub fn lerp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
646 }
647
648 pub fn lerp_unclamped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
650 }
651
652 pub fn lerp_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
654 }
655
656 pub fn move_towards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
658 }
659
660 pub fn move_towards_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
662 }
663
664 pub fn approximately_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
666 }
667
668 pub fn smooth_damp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
670 }
671
672 pub fn smooth_damp_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
674 }
675
676 pub fn smooth_damp_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
678 }
679
680 pub fn smooth_damp_angle_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
682 }
683
684 pub fn repeat_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
686 }
687
688 pub fn inverse_lerp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
690 }
691
692 pub fn delta_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
694 }
695
696 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
698 }
699}
700
701#[cfg(feature = "unity_engine-mathf")]
702#[doc(hidden)]
703pub mod prelude {
704 pub use super::Mathf;
705 #[cfg(feature = "system-object")]
706 pub use crate::system::object::IObjectMethods;
707 #[cfg(feature = "system-valuetype")]
708 pub use crate::system::valuetype::IValueTypeMethods;
709 pub use crate::system::{object::IObject, valuetype::IValueType};
710}