IntExt ClassInt32 and UInt32 extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.System.Math.IntExt
Namespace: UltimateXR.Extensions.System.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class IntExt
The IntExt type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clamp | Clamps a value so that it doesn’t go beyond a given range. | |
Clamped | Returns a clamped value. | |
HasFlags(Int32, Int32) | Checks if the given int value has one or more flags set. | |
HasFlags(UInt32, UInt32) | Checks if the given uint value has one or more flags set. | |
WithFlags(Int32, Int32) | Returns an int value with one or more flags set if they weren’t set already. | |
WithFlags(UInt32, UInt32) | Returns an uint value with one or more flags set if they weren’t set already. | |
WithoutFlags(Int32, Int32) | Returns an int value with one or more flags cleared if they were set. | |
WithoutFlags(UInt32, UInt32) | Returns an uint value with one or more flags cleared if they were set. |