Viewport

Hierarchy

  • Viewport

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Viewport(x: number, y: number, width: number, height: number): Viewport
  • Creates a Viewport object located at (x, y) and sized (width, height).

    Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns Viewport

Properties

height

height: number

width

width: number

x

x: number

y

y: number

Methods

clone

  • Returns a new Viewport copied from the current one.

    Returns Viewport

toGlobal

  • toGlobal(renderWidthOrEngine: number | Engine, renderHeight: number): Viewport
  • Parameters

    • renderWidthOrEngine: number | Engine
    • renderHeight: number

    Returns Viewport

Generated using TypeDoc