Пример #1
0
 public static bool DefaultContains(LinePoint point, int width, int height)
 {
     return
         (point.X >= 0 &&
          point.Y < width);
 }
Пример #2
0
 public IEnumerable <LinePoint> GetAllNeighbors(LinePoint point)
 {
     return(NeighborDirections.Select <LinePoint, LinePoint>(point.Translate));
 }
Пример #3
0
 public bool Contains(LinePoint point)
 {
     return(contains(InversePointTransform(point)));
 }
Пример #4
0
 object IGrid <LinePoint> .this[LinePoint point]
 {
     get { return(this[point]); }
     set { this[point] = (TCell)value; }
 }
Пример #5
0
 private static bool IsInsideSegment(LinePoint point, int length)
 {
     return(0 <= point && point < length);
 }