Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 static void WriteVertex(GISVertex v, BinaryWriter bw)
 {
     bw.Write(v.getX());
     bw.Write(v.getY());
 }