Struct FloatRange
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 FloatRange
Constructors
FloatRange(Single, Single)
Declaration
public FloatRange(float minimum, float maximum)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | minimum | |
| System.Single | maximum |
Fields
Maximum
Maximum range.
Declaration
public float Maximum
Field Value
| Type | Description |
|---|---|
| System.Single |
Minimum
Minimum range.
Declaration
public float Minimum
Field Value
| Type | Description |
|---|---|
| System.Single |
Methods
Lerp(Single)
Declaration
public float Lerp(float percent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | percent |
Returns
| Type | Description |
|---|---|
| System.Single |
RandomInclusive()
Returns a random value between Minimum and Maximum.
Declaration
public float RandomInclusive()
Returns
| Type | Description |
|---|---|
| System.Single |