Esempio n. 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)));
 }
Esempio n. 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));
 }
Esempio n. 3
0
 public bool Equals(Range3I other)
 {
     return(other.Position.Equals(Position) && other.Size.Equals(Size));
 }