/// <summary> /// Enumerates all points in range excluding other range /// </summary> /// <param name="range"></param> /// <param name="exclude"></param> /// <returns></returns> public static IEnumerable <Vector3I> AllExclude(Range3I range, Range3I exclude) { if (range == exclude) { return(null); } return(range.Where(pos => !exclude.Contains(pos))); }
/// <summary> /// Enumerates all points in range excluding range specified /// </summary> /// <param name="exclude"></param> /// <returns></returns> public IEnumerable <Vector3I> AllExclude(Range3I exclude) { return(AllExclude(this, exclude)); }
public bool Equals(Range3I other) { return(other.Position.Equals(Position) && other.Size.Equals(Size)); }