public Coordinate(LatLngPoint point) { X = point.Lng; Y = point.Lat; }
public System.Drawing.Point getMetersFromRowCol(int absoluteRow, int absoluteCol, int z) { LatLngPoint p = getLatLngFromTile(absoluteRow, absoluteCol, getScaleFromZoom(z, dpi)); return(new System.Drawing.Point(Convert.ToInt32(Math.Floor(p.Lng)), Convert.ToInt32(Math.Floor(p.Lat)))); }
public LatLngPoint getCenter(LatLngPoint a) { return(new LatLngPoint((Lng + a.Lng) / 2, (Lat + a.Lat) / 2)); }