Class IntExtensionMethods
- Namespace
- CodeBase
- Assembly
- 4Experience.CodeBase.Core.Runtime.dll
public static class IntExtensionMethods
- Inheritance
-
IntExtensionMethods
Methods
InvertValue(int)
Returns inverted value of int.
public static int InvertValue(this int source)
Parameters
sourceint
Returns
IsInRange(int, int, int)
Checking if an int value is in a two-way closed set.
It uses a method for the float type.
public static bool IsInRange(this int source, int min, int max)
Parameters
Returns
IsInRange(int, Vector2)
Checking if an int value is in a two-way closed set.
Range based on Vector2 value - no matter x or y is greater.
It uses a method for the float type.
public static bool IsInRange(this int source, Vector2 range)
Parameters
sourceintrangeVector2