C# Class RenderingLibrary.Camera

Show file Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
Position Vector2

Private Properties

Property Type Description
UpdateClient void

Public Methods

Method Description
Camera ( SystemManagers managers ) : System
GetTransformationMatirx ( float x, float y, float zoom, int clientWidth, int clientHeight ) : Matrix
GetTransformationMatrix ( ) : Matrix
ScreenToWorld ( float screenX, float screenY, float &worldX, float &worldY ) : void
WorldToScreen ( float worldX, float worldY, float &screenX, float &screenY ) : void

Private Methods

Method Description
UpdateClient ( ) : void

Method Details

Camera() public method

public Camera ( SystemManagers managers ) : System
managers SystemManagers
return System

GetTransformationMatirx() public static method

public static GetTransformationMatirx ( float x, float y, float zoom, int clientWidth, int clientHeight ) : Matrix
x float
y float
zoom float
clientWidth int
clientHeight int
return Matrix

GetTransformationMatrix() public method

public GetTransformationMatrix ( ) : Matrix
return Matrix

ScreenToWorld() public method

public ScreenToWorld ( float screenX, float screenY, float &worldX, float &worldY ) : void
screenX float
screenY float
worldX float
worldY float
return void

WorldToScreen() public method

public WorldToScreen ( float worldX, float worldY, float &screenX, float &screenY ) : void
worldX float
worldY float
screenX float
screenY float
return void

Property Details

Position public property

public Vector2 Position
return Vector2