跳到主要内容

Class Math

Methods

static float LogE(float value)

public static float LogE(float value)

static float Log10(float value)

public static float Log10(float value)

static float Log(float value, float baseNumber)

public static float Log(float value, float baseNumber)

static float Factorial(float naturalNumber)

public static float Factorial(float naturalNumber)

static float GetPow10(int places)

public static float GetPow10(int places)

static float GetPow10Negative(int places)

public static float GetPow10Negative(int places)

static float Overflow(float value, float min, float max)

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

static float Overflow(float value, float min, float max, float interval)

public static float Overflow(float value, float min, float max, float interval)

static bool Overflow(float value, float min, float max, float overflow)

public static bool Overflow(float value, float min, float max, float overflow)

static float Square(float value)

public static float Square(float value)

static float Sqrt(float value)

public static float Sqrt(float value)

static float Exp(float exponent)

public static float Exp(float exponent)

static float Pow(float baseNumber, float exponent)

public static float Pow(float baseNumber, float exponent)

static float Lerp(float a, float b, float t)

public static float Lerp(float a, float b, float t)

static float Lerp01(float a, float b, float t)

public static float Lerp01(float a, float b, float t)

static float SmoothStep(float a, float b, float t)

public static float SmoothStep(float a, float b, float t)

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

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

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

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

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

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

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

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

static int CeilToInt(float value)

public static int CeilToInt(float value)

static float Clamp01(float value)

public static float Clamp01(float value)

static bool Clamp01(float value)

public static bool Clamp01(float value)

static float Remap(float value, float minValueBefore, float maxValueBefore, float minValueAfter, float maxValueAfter)

public static float Remap(float value, float minValueBefore, float maxValueBefore, float minValueAfter, float maxValueAfter)

static int ToInt(float value)

public static int ToInt(float value)

static float Ceiling(float value)

public static float Ceiling(float value)

static float Floor(float value)

public static float Floor(float value)

static int Round(float value)

public static int Round(float value)

static float Round(float value, int places, [bool round = true])

public static float Round(float value, int places, [bool round = true])

static float Sign(float value)

public static float Sign(float value)

static float Sign(bool value)

public static float Sign(bool value)

static float SignZero(float value)

public static float SignZero(float value)

static bool Approximate(float a, float b)

public static bool Approximate(float a, float b)

static int Abs(int value)

public static int Abs(int value)

static float Abs(float value)

public static float Abs(float value)

static float Average(float a, float b)

public static float Average(float a, float b)

static float Average(float a, float b, float c)

public static float Average(float a, float b, float c)

static float Average(float a, float b, float c, float d)

public static float Average(float a, float b, float c, float d)

static int Max(int a, int b)

public static int Max(int a, int b)

static int Max(int[] values)

public static int Max(int[] values)

static int Max(Vector2Int vector2Int)

public static int Max(Vector2Int vector2Int)

static float Max(float a, float b)

public static float Max(float a, float b)

static float Max(float[] values)

public static float Max(float[] values)

static float Max(Vector2 vector2)

public static float Max(Vector2 vector2)

static int Min(int a, int b)

public static int Min(int a, int b)

static int Min(int[] values)

public static int Min(int[] values)

static int Min(Vector2Int vector2Int)

public static int Min(Vector2Int vector2Int)

static float Min(float[] values)

public static float Min(float[] values)

static float Min(float a, float b)

public static float Min(float a, float b)

static float Min(Vector2 vector2)

public static float Min(Vector2 vector2)

static void MinMax(float a, float b, float min, float max)

public static void MinMax(float a, float b, float min, float max)

static void MinMax(float a, float b, float c, float min, float max)

public static void MinMax(float a, float b, float c, float min, float max)

static void MinMax(float a, float b, float c, float d, float min, float max)

public static void MinMax(float a, float b, float c, float d, float min, float max)

static void MinMax(float[] values, float min, float max)

public static void MinMax(float[] values, float min, float max)

static float Repeat(float value, float length)

public static float Repeat(float value, float length)

static float MoveTowards(float current, float target, float delta)

public static float MoveTowards(float current, float target, float delta)

static bool MoveTowards(float current, float target, float delta)

public static bool MoveTowards(float current, float target, float delta)

static IEnumerable<int> Range(int start, int end)

public static IEnumerable<int> Range(int start, int end)

static float Sin(float radians)

public static float Sin(float radians)

static float Cos(float radians)

public static float Cos(float radians)

static float Tan(float radians)

public static float Tan(float radians)

static float Cot(float radians)

public static float Cot(float radians)

static float SinDeg(float degrees)

public static float SinDeg(float degrees)

static float CosDeg(float degrees)

public static float CosDeg(float degrees)

static float TanDeg(float degrees)

public static float TanDeg(float degrees)

static float CotDeg(float degrees)

public static float CotDeg(float degrees)

static float Asin(float sin)

public static float Asin(float sin)

static float Acos(float cos)

public static float Acos(float cos)

static float ATan(float tan)

public static float ATan(float tan)

static float Atan2(float y, float x)

public static float Atan2(float y, float x)

static float Atan2(Vector2 direction)

public static float Atan2(Vector2 direction)

static bool ProjectToPlane(Vector3 position, Vector3 planeOrigin, Vector3 planeNormal, Vector3 projectionDirection, Vector3 projectionPosition)

public static bool ProjectToPlane(Vector3 position, Vector3 planeOrigin, Vector3 planeNormal, Vector3 projectionDirection, Vector3 projectionPosition)

static bool IsInTriangle(Transform transform, Vector3 position, float angle, float length)

public static bool IsInTriangle(Transform transform, Vector3 position, float angle, float length)

static bool IsInTriangularPrism(Transform transform, Vector3 position, float angle, float length, float height)

public static bool IsInTriangularPrism(Transform transform, Vector3 position, float angle, float length, float height)

static bool IsInSector(Transform transform, Vector3 position, float angle, float sideLength)

public static bool IsInSector(Transform transform, Vector3 position, float angle, float sideLength)

static bool IsInSector(Transform transform, Vector3 position, float angle, float sideLength, float height)

public static bool IsInSector(Transform transform, Vector3 position, float angle, float sideLength, float height)

static bool IsInBallCone(Transform transform, Vector3 position, float angle, float sideLength)

public static bool IsInBallCone(Transform transform, Vector3 position, float angle, float sideLength)

static bool IsInCircularCone(Transform transform, Vector3 position, float angle, float length)

public static bool IsInCircularCone(Transform transform, Vector3 position, float angle, float length)

static bool IsInViewFrustum(Camera camera, Vector3 position)

public static bool IsInViewFrustum(Camera camera, Vector3 position)

static bool InRange(float value, float min, float max)

public static bool InRange(float value, float min, float max)

static bool IsPrime(int number)

public static bool IsPrime(int number)

static bool IsEven(int number)

public static bool IsEven(int number)