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; }
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 float clamp(float v, float low, float high);
29
30 MCNAPI static int clamp(int v, int low, int high);
31
32 MCNAPI static float clampRotate(float current, float target, float maxDelta);
33
34 MCNAPI static float lerpRotate(float from, float to, float a);
35
36 MCNAPI static float wrapDegrees(float input);
37
38 MCNAPI static ::mce::Degree wrapDegrees(::mce::Degree input);
39
40 MCNAPI static float wrapRadians(float angle);
41 // NOLINTEND
42
43public:
44 // static variables
45 // NOLINTBEGIN
46 MCNAPI static ::std::add_lvalue_reference_t<float[]> mSin();
47
48 MCNAPI static float const& mSinScale();
49 // NOLINTEND
50};
51
52} // namespace mce
Definition Math.h:12
static MCAPI ::std::add_lvalue_reference_t< float[]> mSin()
static MCAPI float clamp(float v, float low, float high)
static MCAPI ::mce::Degree wrapDegrees(::mce::Degree input)
static MCAPI int clamp(int v, int low, int high)
static MCAPI float const & mSinScale()
static MCAPI float wrapDegrees(float input)
static MCAPI float wrapRadians(float angle)
static MCAPI float lerpRotate(float from, float to, float a)
static MCAPI float clampRotate(float current, float target, float maxDelta)
Definition Degree.h:12
Definition Math.h:21
Definition Math.h:23