Skip to main content

engage/generated/tm_pro/
tmp_math.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_math-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_math/TMP_Math.md"))]
11    #[::unity::class(namespace = "TMPro", name = "TMP_Math")]
12    #[parent(crate::system::object::Object)]
13    pub struct TMP_Math {
14        #[static_field]
15        #[rename(name = "FLOAT_MAX")]
16        pub float_max: f32,
17        #[static_field]
18        #[rename(name = "FLOAT_MIN")]
19        pub float_min: f32,
20        #[static_field]
21        #[rename(name = "INT_MAX")]
22        pub int_max: i32,
23        #[static_field]
24        #[rename(name = "INT_MIN")]
25        pub int_min: i32,
26        #[static_field]
27        #[rename(name = "FLOAT_UNSET")]
28        pub float_unset: f32,
29        #[static_field]
30        #[rename(name = "INT_UNSET")]
31        pub int_unset: i32,
32        #[static_field]
33        #[rename(name = "MAX_16BIT")]
34        pub max_16bit: crate::unity_engine::vector2::Vector2,
35        #[static_field]
36        #[rename(name = "MIN_16BIT")]
37        pub min_16bit: crate::unity_engine::vector2::Vector2,
38    }
39}
40
41#[cfg(feature = "tm_pro-tmp_math-types")]
42pub use __types::*;
43
44#[cfg(feature = "tm_pro-tmp_math")]
45impl TMP_Math {
46    #[doc = "`Approximately(f32, f32)` overload"]
47    pub fn approximately(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> bool {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2827290usize)as*mut u8,bool;
50(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
51        }
52    }
53
54    #[doc = "`Mod(i32, i32)` overload"]
55    pub fn r#mod(a: impl ::core::convert::Into<i32>, b: impl ::core::convert::Into<i32>) -> i32 {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x28272d0usize)as*mut u8,i32;
58(i32)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
59        }
60    }
61
62    #[doc = "`.cctor()` overload"]
63    pub fn cctor() -> () {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x28272f0usize)as*mut u8,();
66            )
67        }
68    }
69}
70
71#[cfg(feature = "tm_pro-tmp_math")]
72impl TMP_Math {
73    pub fn approximately_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
75    }
76
77    pub fn mod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
79    }
80
81    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
83    }
84}
85
86#[cfg(feature = "tm_pro-tmp_math")]
87#[doc(hidden)]
88pub mod prelude {
89    pub use super::{ITMP_Math, TMP_Math};
90    pub use crate::system::object::IObject;
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93}