C# Class ConveyorDefence.Camera

Exibir arquivo Open project: markevich/ConveyorDefence-linux

Public Methods

Method Description
IsTileOutsideOfMap ( Point tileIndex ) : bool
Move ( Vector2 offset ) : void
ScreenToWorld ( Vector2 screenPosition ) : Vector2
WorldToScreen ( Vector2 worldPosition ) : Vector2

Method Details

IsTileOutsideOfMap() public static method

public static IsTileOutsideOfMap ( Point tileIndex ) : bool
tileIndex Microsoft.Xna.Framework.Point
return bool

Move() public static method

public static Move ( Vector2 offset ) : void
offset Microsoft.Xna.Framework.Vector2
return void

ScreenToWorld() public static method

public static ScreenToWorld ( Vector2 screenPosition ) : Vector2
screenPosition Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework.Vector2

WorldToScreen() public static method

public static WorldToScreen ( Vector2 worldPosition ) : Vector2
worldPosition Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework.Vector2