Beispiel #1
0
    private RangeFloat IntervalForChecking(RangeFloat interval)
    {
        RangeFloat newInterval = interval.Inflated(mistakeTimingLeeway);

        newInterval.max = Mathf.Floor(newInterval.max) + 1.0f;
        return(newInterval);
    }
 public static bool Intersects(this RangeFloat a, RangeFloat b, float margin)
 {
     return(a.Inflated(margin).Intersects(b));
 }