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