API

Class Measure

Class used to store 2D control sizes

Index
  • Creates a new measure

    Parameters

    • left: number

      defines left coordinate

    • top: number

      defines top coordinate

    • width: number

      defines width dimension

    • height: number

      defines height dimension

    Returns Measure

height: number

defines height dimension

left: number

defines left coordinate

top: number

defines top coordinate

width: number

defines width dimension

  • Computes the axis aligned bounding box of the measure after it is modified by a given transform

    Parameters

    • transform: Matrix2D

      the matrix to transform the measure before computing the AABB

    • addX: number

      number to add to left

    • addY: number

      number to add to top

    • addWidth: number

      number to add to width

    • addHeight: number

      number to add to height

    • result: Measure

      the resulting AABB

    Returns void

  • Copy from a group of 4 floats

    Parameters

    • left: number

      defines left coordinate

    • top: number

      defines top coordinate

    • width: number

      defines width dimension

    • height: number

      defines height dimension

    Returns void

  • Computes the axis aligned bounding box of the measure after it is modified by a given transform

    Parameters

    • transform: Matrix2D

      the matrix to transform the measure before computing the AABB

    • result: Measure

      the resulting AABB

    Returns void