Class Mathi
Contains methods for integer arithmetic that works consistently for both positive and negative integers.
[Version(1, 0, 0)]
[Obsolete("Use the methods ins GLMathf instead.")]
public static class Mathi
- Inheritance
-
Mathi
- Inherited Members
Methods
Div(int, int)
Floor division that also work for negative m.
public static int Div(int m, int n)
Parameters
Returns
FloorToInt(float)
Returns the highest integer equal to the given float.
public static int FloorToInt(float x)
Parameters
xfloat
Returns
Frac(float)
public static float Frac(float x)
Parameters
xfloat
Returns
Mod(int, int)
Mod operator that also works for negative m.
public static int Mod(int m, int n)
Parameters
Returns
Sine(int)
public static int Sine(int p)
Parameters
pint
Returns
Sine(float)
public static int Sine(float p)
Parameters
pfloat