Nez.Portable/PipelineRuntime/Tiled/TiledMap.cs
/// <summary>
/// converts from world to tile position clamping to the tilemap bounds
/// </summary>
/// <returns>The to tile position.</returns>
/// <param name="pos">Position.</param>
converts from world to tile position clamping to the tilemap bounds
converts from world to tile position clamping to the tilemap bounds
public Point worldToTilePosition(Vector2 pos, bool clampToTilemapBounds = true)
        {
            return new Point(
                worldToTilePositionX(pos.X, clampToTilemapBounds),
                worldToTilePositionY(pos.Y, clampToTilemapBounds));
        }
public Point worldToTilePosition ( Vector2 pos , bool clampToTilemapBounds = true ) { return new Point ( worldToTilePositionX ( pos . X , clampToTilemapBounds ) , worldToTilePositionY ( pos . Y , clampToTilemapBounds ) ) ; }
converts from world to tile position clamping to the tilemap bounds
converts from world to tile position clamping to the tilemap bounds
The to tile position.
The to tile position .
pos
Vector2
None
clampToTilemapBounds
bool