示例#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));
 }