public static IsoMinMax Merge(IsoMinMax a, IsoMinMax b) { if (a.min > b.min) { a.min = b.min; } if (a.max < b.max) { a.max = b.max; } return(a); }
public bool Approximately(IsoMinMax other) { return (Mathf.Approximately(min, other.min) && Mathf.Approximately(max, other.max)); }
public bool Contains(IsoMinMax other) { return (max >= other.max && min <= other.min); }
public bool Overlaps(IsoMinMax other) { return (max > other.min && min < other.max); }
public void Set(IsoMinMax other) { min = other.min; max = other.max; }
public IsoMinMax(IsoMinMax other) : this() { min = other.min; max = other.max; }
public void Set(IsoMinMax minmax_x, IsoMinMax minmax_y) { x.Set(minmax_x); y.Set(minmax_y); }
public IsoRect(IsoMinMax minmax_x, IsoMinMax minmax_y) : this() { x.Set(minmax_x); y.Set(minmax_y); }
public static IsoRect Merge(IsoRect a, IsoRect b) { a.x = IsoMinMax.Merge(a.x, b.x); a.y = IsoMinMax.Merge(a.y, b.y); return(a); }