public static class Mathf

Inheritance Chain

Static Fields

    public const Single E = 2.71828175f

    public const Single Epsilon = 1E-06f

    public const Single Inf = float.PositiveInfinity

    public const Single NaN = float.NaN

    public const Single Pi = 3.14159274f

    public const Single Sqrt2 = 1.41421354f

    public const Single Tau = 6.28318548f

Static Methods

    public static float Abs(float s)

    public static int Abs(int s)

    public static float Acos(float s)

    public static float Asin(float s)

    public static float Atan(float s)

    public static float Atan2(float x, float y)

    public static Vector2 Cartesian2Polar(float x, float y)

    public static float Ceil(float s)

    public static int CeilToInt(float s)

    public static int Clamp(int value, int min, int max)

    public static float Clamp(float value, float min, float max)

    public static float Cos(float s)

    public static float Cosh(float s)

    public static int Decimals(float step)

    public static int Decimals(decimal step)

    public static float Deg2Rad(float deg)

    public static float Ease(float s, float curve)

    public static float Exp(float s)

    public static float Floor(float s)

    public static int FloorToInt(float s)

    public static float InverseLerp(float from, float to, float weight)

    public static bool IsInf(float s)

    public static bool IsNaN(float s)

    public static float Lerp(float from, float to, float weight)

    public static float Log(float s)

    public static int Max(int a, int b)

    public static float Max(float a, float b)

    public static int Min(int a, int b)

    public static float Min(float a, float b)

    public static int NearestPo2(int value)

    public static Vector2 Polar2Cartesian(float r, float th)

    public static float PosMod(float a, float b)

    public static int PosMod(int a, int b)

    public static float Pow(float x, float y)

    public static float Rad2Deg(float rad)

    public static float Round(float s)

    public static int RoundToInt(float s)

    public static int Sign(int s)

    public static float Sign(float s)

    public static float Sin(float s)

    public static float Sinh(float s)

    public static float Sqrt(float s)

    public static float Stepify(float s, float step)

    public static float Tan(float s)

    public static float Tanh(float s)

    public static int Wrap(int value, int min, int max)

    public static float Wrap(float value, float min, float max)
Tags: