public ScreenRectangle(CoordinatePoligon coordinatePoligon, int level) { for (var i = 0; i < coordinatePoligon.Count; i++) { var pt = new ScreenCoordinate(coordinatePoligon.Coordinates[i], level); if (i == 0) { Left = pt.X; Right = pt.X; Top = pt.Y; Bottom = pt.Y; } else { if (pt.X < Left) { Left = pt.X; } if (pt.X > Right) { Right = pt.X; } if (pt.Y < Top) { Top = pt.Y; } if (pt.Y > Bottom) { Bottom = pt.Y; } } } Level = level; }
public GoogleRectangle(CoordinatePoligon coordinatePoligon, int level) { for (var i = 0; i < coordinatePoligon.Count; i++) { var pt = new GoogleCoordinate(coordinatePoligon.Coordinates[i], level); if (i == 0) { Left = pt.X; Right = pt.X; Top = pt.Y; Bottom = pt.Y; } else { if (pt.X < Left) Left = pt.X; if (pt.X > Right) Right = pt.X; if (pt.Y < Top) Top = pt.Y; if (pt.Y > Bottom) Bottom = pt.Y; } } Level = level; }
public IntersectResult PoligonContains(CoordinatePoligon poligon) { return(((CoordinateRectangle)this).PoligonContains(poligon)); }
public InterseptResult PoligonContains(CoordinatePoligon poligon) { return ((CoordinateRectangle)this).PoligonContains(poligon); }