This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
UDBase.Helpers
konh edited this page Apr 25, 2018
·
3 revisions
Float range helper class for work with values in specific range
public class UDBase.Helpers.FloatRange
: Range<Single>
Methods
Type | Name | Summary |
---|---|---|
Boolean |
Contains(Single value) |
Check that given value in Start <= value <= End |
Boolean |
IsValid() | Returns true if range is valid (End > Start) |
Single |
Random() | Return value in Start <= value < End |
Integer range helper class for work with values in specific range
public class UDBase.Helpers.IntRange
: Range<Int32>
Methods
Type | Name | Summary |
---|---|---|
Boolean |
Contains(Int32 value) |
Check that given value in Start <= value <= End |
Boolean |
IsValid() | Returns true if range is valid (End > Start) |
Int32 |
Random() | Return value in Start <= value < End |
Int32 |
RandomInclusive() | Return value in Start <= value <= End |
Base range helper class for work with values in specific range
public abstract class UDBase.Helpers.Range<T>
Fields
Type | Name | Summary |
---|---|---|
T |
End | |
T |
Start |
Methods
Type | Name | Summary |
---|---|---|
Boolean |
Contains(T value) |
|
Boolean |
IsValid() | |
T |
Random() | |
String |
ToString() |