Struct FloatRange
A struct representing a continuous range of values
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Samplers
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
public struct FloatRange
Constructors
FloatRange(float, float)
Constructs a float range
Declaration
public FloatRange(float min, float max)
Parameters
Type | Name | Description |
---|---|---|
float | min | The smallest value contained within the range |
float | 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 |
---|---|
float |
minimum
The smallest value contained within the range
Declaration
public float minimum
Field Value
Type | Description |
---|---|
float |
Methods
Validate()
Assert whether this range is valid
Declaration
public void Validate()
Exceptions
Type | Condition |
---|---|
ArgumentException |