public void SetValue(GISVertex _bottomleft, GISVertex _upright) { upright = _upright; bottomleft = _bottomleft; MinX = bottomleft.getX(); MinY = bottomleft.getY(); MaxX = upright.getX(); MaxY = upright.getY(); Width = upright.getX() - bottomleft.getX(); Height = upright.getY() - bottomleft.getY(); MapCenter = new GISVertex((MinX + MaxX) / 2, (MinY + MaxY) / 2); }
static void WriteVertex(GISVertex v, BinaryWriter bw) { bw.Write(v.getX()); bw.Write(v.getY()); }