Struct FloatRange
A struct representing a continuous range of values
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Samplers
Syntax
[Serializable]
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()
Exceptions
Type | Condition |
---|---|
ArgumentException |