Struct FloatRange
A struct representing a continuous range of values
Namespace: UnityEngine.Perception.Randomization.Samplers
Syntax
public struct FloatRange
Constructors
FloatRange(Single, Single)
Constructs a float range
Declaration
public FloatRange(float min, float max)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | min | The smallest value contained within the range |
| Single | max | The largest value contained within the range |
Fields
maximum
The largest value contained within the range
Declaration
public float maximum
Field Value
| Type | Description |
|---|---|
| Single |
minimum
The smallest value contained within the range
Declaration
public float minimum
Field Value
| Type | Description |
|---|---|
| Single |
Methods
Validate()
Assert whether this range is valid
Declaration
public void Validate()