LeviLamina
Loading...
Searching...
No Matches
Math.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace mce {
6
7class Math {
8public:
9 // Math inner types declare
10 // clang-format off
11 struct PairHash;
12 struct TupleHash;
13 // clang-format on
14
15 // Math inner types define
16 struct PairHash {};
17
18 struct TupleHash {};
19
20public:
21 // static functions
22 // NOLINTBEGIN
23 MCNAPI static float clamp(float v, float low, float high);
24
25 MCNAPI static int clamp(int v, int low, int high);
26
27 MCNAPI static float clampRotate(float current, float target, float maxDelta);
28
29 MCNAPI static bool isNan(double d);
30
31 MCNAPI static bool isNan(float f);
32
33 MCNAPI static float lerpRotate(float from, float to, float a);
34
35 MCNAPI static float wrapDegrees(float input);
36
37 MCNAPI static float wrapRadians(float angle);
38 // NOLINTEND
39
40public:
41 // static variables
42 // NOLINTBEGIN
43 MCNAPI static ::std::add_lvalue_reference_t<float[]> mSin();
44
45 MCNAPI static float const& mSinScale();
46 // NOLINTEND
47};
48
49} // namespace mce
Definition Math.h:7
static MCAPI ::std::add_lvalue_reference_t< float[]> mSin()
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 wrapRadians(float angle)
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:16
Definition Math.h:18