IntRange

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct IntRange

⭐ Constructors

public IntRange(int single)

Parameters
single int

public IntRange(int start, int end)

Parameters
start int
end int

⭐ Properties

End

public readonly int End;

Returns
int

Start

public readonly int Start;

Returns
int

Zero

public readonly static IntRange Zero;

Returns
IntRange

⭐ Methods

Contains(float)

public bool Contains(float v)

Parameters
v float

Returns
bool

Contains(int)

public bool Contains(int v)

Parameters
v int

Returns
bool

Get(float)

public float Get(float progress)

Parameters
progress float

Returns
float

GetRandom()

public float GetRandom()

Returns
float

GetRandomFloat(Random)

public float GetRandomFloat(Random random)

Parameters
random Random

Returns
float

GetRandom(Random)

public int GetRandom(Random random)

Parameters
random Random

Returns
int