Table of Contents

Class GLMathf

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Methods for additional math functions.

[Version(1, 4, 0)]
public static class GLMathf
Inheritance
GLMathf
Inherited Members

Fields

Sqrt3

Methods

Div(int, int)
Equal(float, float)

Checks if two floating point numbers are equal.

FloorDiv(int, int)

Floor division that also work for negative m.

FloorMod(int, int)

Mod operator that also works for negative m.

FloorMod(float, float)

Mod operator that also works for negative m.

FloorToInt(float)

Returns the highest integer equal to the given float.

Frac(float)

Returns the fractional part of a floating point number.

InRange(float, float, float)

Tests whether the given value lies in the half-open interval specified by its endpoints, that is, whether the value lies in the interval [closedLeft, openRight).

InRange01(float)

Tests whether the given value lies in the range [0, 1).

Mod(int, int)
Mod(float, float)
Sign(int)

Returns the sign function evaluated at the given value.

Sign(float)

Returns the sign function evaluated at the given value.

Wlerp01(float, float, float)

Linearly interpolates between two values between 0 and 1 if values wrap around from 1 back to 0.

Wrap01(float)