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