Пример #1
0
        /// <summary>
        /// Creates a new rectangle.
        /// </summary>
        /// <param name="x">X-Coordinate</param>
        /// <param name="y">Y-Corodinate</param>
        /// <param name="width">Width of the rectangle</param>
        /// <param name="height">Height of the rectangle.</param>
        public MapRectangle(int x, int y, int width, int height)
        {
            Location = new MapVector();
            Size     = new MapSize();

            X      = x;
            Y      = y;
            Width  = width;
            Height = height;
        }
Пример #2
0
 /// <summary>
 /// Creates a new descriptor using a zoom level and a point.
 /// </summary>
 /// <param name="zoom">The zoom level.</param>
 /// <param name="tile">The Coordinates of the tile within the zoom level.</param>
 public TileDescriptor(int zoom, MapVector tile)
 {
     Zoom = zoom;
     Tile = tile;
 }
Пример #3
0
 public MapVectorD(MapVector source)
 {
     X = source.X;
     Y = source.Y;
 }