Table of Contents

Class Mathi

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

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

m int
n int

Returns

int

FloorToInt(float)

Returns the highest integer equal to the given float.

public static int FloorToInt(float x)

Parameters

x float

Returns

int

Frac(float)

public static float Frac(float x)

Parameters

x float

Returns

float

Mod(int, int)

Mod operator that also works for negative m.

public static int Mod(int m, int n)

Parameters

m int
n int

Returns

int

Sine(int)

public static int Sine(int p)

Parameters

p int

Returns

int

Sine(float)

public static int Sine(float p)

Parameters

p float

Returns

int