Class (GI Struct)

Mtk-18MtkRectangle

Index

Constructors

  • Parameters

    • Optionalproperties: Partial<{ height: number; width: number; x: number; y: number }>

    Returns Mtk.Rectangle

Properties

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

Methods

  • Parameters

    • x: number

      X coordinate of the point

    • y: number

      Y coordinate of the point

    Returns boolean

    Whether the rectangle contains the point

  • Parameters

    • x: number

      X coordinate of the point

    • y: number

      Y coordinate of the point

    Returns boolean

    Whether the rectangle contains the point

  • This function transforms the values in rect in order to compensate for transform applied to a MetaMonitor, making them match the viewport. Note that compensating implies that for a clockwise rotation of the MetaMonitor an anti-clockwise rotation has to be applied to rect.

    Parameters

    Returns void