Пример #1
0
 /// <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)));
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 public bool Equals(Range3I other)
 {
     return(other.Position.Equals(Position) && other.Size.Equals(Size));
 }