Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rect

Describes a rectangle with a position and a size.

Hierarchy

  • Rect

Implements

  • Serializable

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Rect(x: number, y: number, width: number, height: number): Rect
  • Initializes a new instance of the Rect class.

    Parameters

    • x: number

      The horizontal position.

    • y: number

      The vertical position.

    • width: number

      The horizontal dimension.

    • height: number

      The vertical dimension.

    Returns Rect

Properties

height

height: number

Gets or sets the vertical size.

width

width: number

Gets or sets the horizontal size.

x

x: number

Gets or sets the horizontal position.

y

y: number

Gets or sets the vertical position.

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Generated using TypeDoc