Class Size

The Size is specified by a x(width) and a y(height).

Hierarchy

  • Size

Constructors

Properties

Accessors

x y

Methods

Constructors

  • Constructs a size with the given x(width) and y(height).

    Parameters

    • x: number = 0
    • y: number = 0

    Returns Size

Properties

m_x: number
m_y: number

Accessors

  • get x(): number
  • Returns the width of this size.

    Returns number

  • set x(x): void
  • Sets the width to the given x.

    Parameters

    • x: number

    Returns void

  • get y(): number
  • Returns the height of this size.

    Returns number

  • set y(y): void
  • Sets the height to the given y.

    Parameters

    • y: number

    Returns void

Methods

  • Returns a size holding the minimum width and height of this size and the given other.

    Parameters

    Returns Size

  • Returns a copy of this size.

    Returns Size

  • Returns true if this size and other are equal; otherwise returns false.

    Parameters

    Returns boolean

  • Copies the other size to this size.

    Parameters

    Returns void

  • Returns a size holding the maximum width and height of this size and the given other.

    Parameters

    Returns Size

  • Returns true if both the width and height is 0; otherwise returns false.

    Returns boolean

  • Returns true if both the width and height is equal to or greater than 0; otherwise returns false.

    Returns boolean

Generated using TypeDoc