Struct UIntRange
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GameKit.Dependencies.Utilities.Types
Assembly: GameKit.Dependencies.dll
Syntax
[Serializable]
public struct UIntRange
Constructors
UIntRange(UInt32, UInt32)
Declaration
public UIntRange(uint minimum, uint maximum)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | minimum | |
System.UInt32 | maximum |
Fields
Maximum
Maximum range.
Declaration
public uint Maximum
Field Value
Type | Description |
---|---|
System.UInt32 |
Minimum
Minimum range.
Declaration
public uint Minimum
Field Value
Type | Description |
---|---|
System.UInt32 |
Methods
Clamp(UInt32)
Clamps value between Minimum and Maximum.
Declaration
public uint Clamp(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value |
Returns
Type | Description |
---|---|
System.UInt32 |
InRange(UInt32)
True if value is within range of Minimum and Maximum.
Declaration
public bool InRange(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value |
Returns
Type | Description |
---|---|
System.Boolean |
RandomExclusive()
Returns an exclusive random value between Minimum and Maximum.
Declaration
public uint RandomExclusive()
Returns
Type | Description |
---|---|
System.UInt32 |
RandomInclusive()
Returns an inclusive random value between Minimum and Maximum.
Declaration
public uint RandomInclusive()
Returns
Type | Description |
---|---|
System.UInt32 |