Nez.Portable/PipelineRuntime/Tiled/TiledMap.cs
/// <summary>
/// converts from isometric tile to world position
/// </summary>
/// <returns>The to world position.</returns>
/// <param name="x">The x coordinate.</param>
/// <param name="y">The y coordinate.</param>
converts from isometric tile to world position
converts from isometric tile to world position
public Vector2 isometricTileToWorldPosition(int x, int y)
        {
            var worldX = x * tileWidth / 2 - y * tileWidth / 2 + (height - 1) * tileWidth / 2;
            var worldY = y * tileHeight / 2 + x * tileHeight / 2;
            return new Vector2(worldX, worldY);
        }
public Vector2 isometricTileToWorldPosition ( int x , int y ) { var worldX = x * tileWidth / 2 - y * tileWidth / 2 + ( height - 1 ) * tileWidth / 2 ; var worldY = y * tileHeight / 2 + x * tileHeight / 2 ; return new Vector2 ( worldX , worldY ) ; }
converts from isometric tile to world position
converts from isometric tile to world position
The to world position.
The to world position .
x
int
The x coordinate.
The x coordinate .
y
int
The y coordinate.
The y coordinate .