Class CustomMathF
- Namespace
- Alis.Core.Aspect.Math
- Assembly
- Alis.dll
The math class
public static class CustomMathF
Inheritance
Inherited Members
Fields
E
Represents the natural logarithmic base, specified by the constant, e
.
public const float E = 2.7182817
Field Value
MaxIterations
The max iterations
private const int MaxIterations = 10
Field Value
Pi
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, p.
public const float Pi = 3.1415927
Field Value
Tau
Represents the number of radians in one turn, specified by the constant, τ.
public const float Tau = 6.2831855
Field Value
Methods
Abs(float)
Abs the value
public static float Abs(float value)
Parameters
value
float-
The value
Returns
- float
-
The float
Acos(float)
Acos the x
public static float Acos(float x)
Parameters
x
float-
The
Returns
- float
-
The angle
Cos(float)
Coses the x
public static float Cos(float x)
Parameters
x
float-
The
Returns
- float
-
The result
Max(int, int)
Maxes the val 1
public static int Max(int val1, int val2)
Parameters
Returns
- int
-
The int
Max(float, float)
Maxes the val 1
public static float Max(float val1, float val2)
Parameters
Returns
- float
-
The float
Min(int, int)
Mins the y 3
public static int Min(int y3, int y4)
Parameters
Returns
- int
-
The int
Min(float, float)
Mins the y 3
public static float Min(float y3, float y4)
Parameters
Returns
- float
-
The float
Sin(float)
Sins the x
public static float Sin(float x)
Parameters
x
float-
The
Returns
- float
-
The result
Sqrt(float)
Sqrt the x
public static float Sqrt(float x)
Parameters
x
float-
The
Returns
- float
-
The float