using System;
using UnityEngine.Scripting.APIUpdating;
using Assert = UnityEngine.Assertions.Assert;
namespace UnityEngine.Perception.Randomization.Samplers
{
///
/// A struct representing a continuous range of values
///
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public struct FloatRange
{
///
/// The smallest value contained within the range
///
public float minimum;
///
/// The largest value contained within the range
///
public float maximum;
///
/// Constructs a float range
///
/// The smallest value contained within the range
/// The largest value contained within the range
public FloatRange(float min, float max)
{
minimum = min;
maximum = max;
}
///
/// Assert whether this range is valid
///
///
public void Validate()
{
Assert.IsTrue(minimum <= maximum);
}
}
}