Example #1
0
 /// <summary>
 /// Creates a new instance of <see cref="RangeF"/> based on the minimum and maximum values of another <see cref="RangeF"/>.
 /// </summary>
 /// <param name="other">The <see cref="RangeF"/> to copy.</param>
 public RangeF(RangeF other)
 {
     Min = other.Min;
     Max = other.Max;
 }
Example #2
0
 /// <summary>
 /// Include another range in this range.
 /// </summary>
 /// <param name="range">The other range to include.</param>
 public void Include(RangeF range)
 {
     Min = Mathf.Min(Min, range.Min);
     Max = Mathf.Max(Max, range.Max);
 }