using System;
using Assert = UnityEngine.Assertions.Assert;
namespace UnityEngine.Experimental.Perception.Randomization.Samplers
{
///
/// A struct representing a continuous range of values
///
[Serializable]
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);
}
}
}