C# Класс PantheonPrototype.Camera

The class that contains all of the information for the camera's rotation, position, zoom, and related.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Position Vector2
Transform Matrix

Защищенные свойства (Protected)

Свойство Тип Описание
rotation float
zoom float

Открытые методы

Метод Описание
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.

Описание методов

Camera() публичный Метод

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.
Результат System

Move() публичный Метод

An additional way to move the camera.
public Move ( Vector2 offset ) : void
offset Vector2 The offest for the camera
Результат void

getTransformation() публичный Метод

The method to get the matrix that is the transformed screen based on zooms, shifts, rotations, and the like.
public getTransformation ( ) : Matrix
Результат Matrix

Описание свойств

Position публичное свойство

public Vector2 Position
Результат Vector2

Transform публичное свойство

public Matrix Transform
Результат Matrix

rotation защищенное свойство

protected float rotation
Результат float

zoom защищенное свойство

protected float zoom
Результат float