C# Класс MeshRenderer.Core.Zoom

Manages the current world to screen transformation
Показать файл Открыть проект Примеры использования класса

Private Properties

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

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

Метод Описание
Initialize ( Rectangle screen ) : void
Initialize ( Rectangle screen, BoundingBox world ) : void
ScreenToWorld ( float x, float y ) : PointF
Update ( BoundingBox world ) : void
ViewportContains ( float x, float y ) : bool
WorldToScreen ( float x, float y ) : PointF
Zoom ( ) : System
Zoom ( bool invertY ) : System
ZoomReset ( ) : void
ZoomUpdate ( int amount, float focusX, float focusY ) : bool

Zoom in or out of the viewport.

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

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

public Initialize ( Rectangle screen ) : void
screen System.Drawing.Rectangle
Результат void

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

public Initialize ( Rectangle screen, BoundingBox world ) : void
screen System.Drawing.Rectangle
world BoundingBox
Результат void

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

public ScreenToWorld ( float x, float y ) : PointF
x float
y float
Результат System.Drawing.PointF

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

public Update ( BoundingBox world ) : void
world BoundingBox
Результат void

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

public ViewportContains ( float x, float y ) : bool
x float
y float
Результат bool

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

public WorldToScreen ( float x, float y ) : PointF
x float
y float
Результат System.Drawing.PointF

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

public Zoom ( ) : System
Результат System

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

public Zoom ( bool invertY ) : System
invertY bool
Результат System

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

public ZoomReset ( ) : void
Результат void

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

Zoom in or out of the viewport.
public ZoomUpdate ( int amount, float focusX, float focusY ) : bool
amount int Zoom amount
focusX float Relative x point position
focusY float Relative y point position
Результат bool