Exemplo n.º 1
0
        /// <summary>
        /// Gets the screen location of the center of a cell.
        /// </summary>
        public Point GetCellLocation(Vector2 position)
        {
            var point = new Point(CellSize.Width * position.X + CellSize.Width / 2,
                                  CellSize.Height * position.Y + CellSize.Height / 2);

            return(m_area.GetScreenLocation(point));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the screen location of the center of a cell.
 /// </summary>
 public Point GetScreenLocationForCell(Vector2 position)
 {
     return(m_area.GetScreenLocation(GetCellLocationLocal(position)));
 }