-
Notifications
You must be signed in to change notification settings - Fork 1
Mathf bindings
SDraw edited this page Jun 2, 2023
·
1 revision
Refer to Unity's Mathf documentation for properties and methods description.
-
Deg2Rad
: get, float -
Epsilon
: get, float -
Rad2Deg
: get, float
bool Approximately(float a, float b)
int CeilToInt(float a)
float Clamp(float value, float min, float max)
float Clamp01(float value)
int ClosestPowerOfTwo(int value)
float DeltaAngle(float angle, float target)
float FloorToInt(float value)
float GammaToLinearSpace(float value)
float InverseLerp(float a, float b, float value)
bool IsPowerOfTwo(int value)
float Lerp(float a, float b, float t)
float LerpAngle(float a, float b, float t)
float LerpUnclamped(float a, float b, float t)
float LinearToGammaSpace(float value)
float MoveTowards(float current, float target, float maxDelta)
float MoveTowardsAngle(float current, float target, float maxDelta)
int NextPowerOfTwo(int value)
float PerlinNoise(float x, float y)
float PingPong(float t, float length)
float Repeat(float t, float length)
int RoundToInt(float value)
float Sign(float value)
float float SmoothDamp(float current, float target, float currentVelocity, float smoothTime, float maxSpeed = Mathf.Infinity, float deltaTime = Time.deltaTime)
float float SmoothDampAngle(float current, float target, float currentVelocity, float maxSpeed = Mathf.Infinity, float deltaTime = Time.deltaTime)
float SmoothStep(float from, float to, float t)