C# Class PantheonPrototype.Camera

The class that contains all of the information for the camera's rotation, position, zoom, and related.
Afficher le fichier Open project: Bacon41/PantheonPrototype Class Usage Examples

Méthodes publiques

Свойство Type Description
Position Vector2
Transform Matrix

Protected Properties

Свойство Type Description
rotation float
zoom float

Méthodes publiques

Méthode Description
Camera ( int w, int h ) : System

The constructor that reads in the initial camera frame size and initializes the other information.

Move ( Vector2 offset ) : void

An additional way to move the camera.

getTransformation ( ) : Matrix

The method to get the matrix that is the transformed screen based on zooms, shifts, rotations, and the like.

Method Details

Camera() public méthode

The constructor that reads in the initial camera frame size and initializes the other information.
public Camera ( int w, int h ) : System
w int Screen width.
h int Screen height.
Résultat System

Move() public méthode

An additional way to move the camera.
public Move ( Vector2 offset ) : void
offset Vector2 The offest for the camera
Résultat void

getTransformation() public méthode

The method to get the matrix that is the transformed screen based on zooms, shifts, rotations, and the like.
public getTransformation ( ) : Matrix
Résultat Matrix

Property Details

Position public_oe property

public Vector2 Position
Résultat Vector2

Transform public_oe property

public Matrix Transform
Résultat Matrix

rotation protected_oe property

protected float rotation
Résultat float

zoom protected_oe property

protected float zoom
Résultat float