LeviLamina
Loading...
Searching...
No Matches
Math.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace mce { struct Degree; }
8namespace mce { struct Radian; }
9// clang-format on
10
11namespace mce::Math {
12// functions
13// NOLINTBEGIN
14#ifdef LL_PLAT_S
15MCAPI ::mce::Radian atan2(float dy, float dx);
16#endif
17
18MCAPI float clamp(float v, float low, float high);
19
20MCAPI int clamp(int v, int low, int high);
21
22MCAPI float clampRotate(float current, float target, float maxDelta);
23
24MCAPI float cos(float f);
25
26MCAPI float easeInBack(float from, float to, float alpha);
27
28MCAPI float easeInBounce(float from, float to, float alpha);
29
30MCAPI float easeInCirc(float from, float to, float alpha);
31
32MCAPI float easeInCubic(float from, float to, float alpha);
33
34MCAPI float easeInElastic(float from, float to, float alpha);
35
36MCAPI float easeInExpo(float from, float to, float alpha);
37
38MCAPI float easeInOutBack(float from, float to, float alpha);
39
40MCAPI float easeInOutBounce(float from, float to, float alpha);
41
42MCAPI float easeInOutCirc(float from, float to, float alpha);
43
44MCAPI float easeInOutCubic(float from, float to, float alpha);
45
46MCAPI float easeInOutElastic(float from, float to, float alpha);
47
48MCAPI float easeInOutExpo(float from, float to, float alpha);
49
50MCAPI float easeInOutQuad(float from, float to, float alpha);
51
52MCAPI float easeInOutQuart(float from, float to, float alpha);
53
54MCAPI float easeInOutQuint(float from, float to, float alpha);
55
56MCAPI float easeInOutSine(float from, float to, float alpha);
57
58MCAPI float easeInQuad(float from, float to, float alpha);
59
60MCAPI float easeInQuart(float from, float to, float alpha);
61
62MCAPI float easeInQuint(float from, float to, float alpha);
63
64MCAPI float easeInSine(float from, float to, float alpha);
65
66MCAPI float easeOutBack(float from, float to, float alpha);
67
68MCAPI float easeOutBounce(float from, float to, float alpha);
69
70MCAPI float easeOutCirc(float from, float to, float alpha);
71
72MCAPI float easeOutCubic(float from, float to, float alpha);
73
74MCAPI float easeOutElastic(float from, float to, float alpha);
75
76MCAPI float easeOutExpo(float from, float to, float alpha);
77
78MCAPI float easeOutQuad(float from, float to, float alpha);
79
80MCAPI float easeOutQuart(float from, float to, float alpha);
81
82MCAPI float easeOutQuint(float from, float to, float alpha);
83
84MCAPI float easeOutSine(float from, float to, float alpha);
85
86MCAPI float lerpRotate(float from, float to, float alpha);
87
88#ifdef LL_PLAT_S
89MCAPI float sin(float f);
90#endif
91
92MCAPI float wrapDegrees(float input);
93
94MCAPI ::mce::Degree wrapDegrees(::mce::Degree input);
95
96MCAPI float wrapRadians(float angle);
97// NOLINTEND
98
99} // namespace mce::Math
Definition Degree.h:17
Definition Radian.h:12