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 {
12
13class Math {
14public:
15 // Math inner types declare
16 // clang-format off
17 struct PairHash;
18 struct TupleHash;
19 // clang-format on
20
21 // Math inner types define
22 struct PairHash {};
23
24 struct TupleHash {};
25
26public:
27 // static functions
28 // NOLINTBEGIN
29 MCAPI static ::mce::Radian atan2(float dy, float dx);
30
31 MCAPI static float clamp(float v, float low, float high);
32
33 MCAPI static int clamp(int v, int low, int high);
34
35 MCAPI static float clampRotate(float current, float target, float maxDelta);
36
37 MCAPI static bool isNan(double d);
38
39 MCAPI static bool isNan(float f);
40
41 MCAPI static float lerpRotate(float from, float to, float a);
42
43 MCAPI static float wrapDegrees(float input);
44
45 MCAPI static ::mce::Degree wrapDegrees(::mce::Degree input);
46 // NOLINTEND
47
48public:
49 // static variables
50 // NOLINTBEGIN
51 MCAPI static ::std::add_lvalue_reference_t<float[]> mSin();
52
53 MCAPI static float const& mSinScale();
54 // NOLINTEND
55};
56
57} // namespace mce
Definition Math.h:13
Definition Degree.h:17
Definition Math.h:22
Definition Math.h:24