Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Viewport

Class used to represent a viewport on screen

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

      defines viewport left coordinate

    • y: number

      defines viewport top coordinate

    • width: number

      defines the viewport width

    • height: number

      defines the viewport height

    Returns Viewport

Properties

height

height: number

defines the viewport height

width

width: number

defines the viewport width

x

x: number

defines viewport left coordinate

y

y: number

defines viewport top coordinate

Methods

clone