Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to store 2D control sizes

Hierarchy

  • Measure

Index

Constructors

  • new Measure(left: number, top: number, width: number, height: number): Measure
  • 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

Properties

height: number

defines height dimension

left: number

defines left coordinate

top: number

defines top coordinate

width: number

defines width dimension

Methods

  • addAndTransformToRef(transform: Matrix2D, addX: number, addY: number, addWidth: number, addHeight: number, result: Measure): 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

    • 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 another measure

    Parameters

    • other: Measure

      defines the other measure to copy from

    Returns void

  • copyFromFloats(left: number, top: number, width: number, height: number): 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

  • isEqualsTo(other: Measure): boolean
  • Check equality between this measure and another one

    Parameters

    • other: Measure

      defines the other measures

    Returns boolean

    true if both measures are equals

  • 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

  • Computes the axis aligned bounding box measure for two given measures

    Parameters

    Returns void

  • Creates an empty measure

    Returns Measure

    a new measure

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme