Class NumberExtensions
Inheritance
NumberExtensions
Assembly: Glitch9.dll
Syntax
public static class NumberExtensions
Methods
|
Edit this page
View Source
HasFlag(int, int)
Declaration
public static bool HasFlag(this int value, int flag)
Parameters
| Type |
Name |
Description |
| int |
value |
|
| int |
flag |
|
Returns
|
Edit this page
View Source
IsEven(int)
Declaration
public static bool IsEven(this int number)
Parameters
| Type |
Name |
Description |
| int |
number |
|
Returns
|
Edit this page
View Source
IsOdd(int)
Declaration
public static bool IsOdd(this int number)
Parameters
| Type |
Name |
Description |
| int |
number |
|
Returns
|
Edit this page
View Source
IsSingleBit(long)
Declaration
public static bool IsSingleBit(this long v)
Parameters
| Type |
Name |
Description |
| long |
v |
|
Returns
|
Edit this page
View Source
NextIndex(int, int, bool)
Declaration
public static int NextIndex(this int idx, int count, bool loop = true)
Parameters
Returns
|
Edit this page
View Source
PreviousIndex(int, int, bool)
Declaration
public static int PreviousIndex(this int idx, int count, bool loop = true)
Parameters
Returns
|
Edit this page
View Source
ToInt32(double)
Declaration
public static int ToInt32(this double value)
Parameters
| Type |
Name |
Description |
| double |
value |
|
Returns
|
Edit this page
View Source
ToInt32(long)
Declaration
public static int ToInt32(this long value)
Parameters
| Type |
Name |
Description |
| long |
value |
|
Returns
|
Edit this page
View Source
ToInt32(float)
Declaration
public static int ToInt32(this float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns