Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Measure

Class used to store 2D control sizes

Hierarchy

  • Measure

Index

Constructors

constructor

  • 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

heightSearch playground for height

height: number

defines height dimension

leftSearch playground for left

left: number

defines left coordinate

topSearch playground for top

top: number

defines top coordinate

widthSearch playground for width

width: number

defines width dimension

Methods

addAndTransformToRefSearch playground for addAndTransformToRef

  • 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

copyFromSearch playground for copyFrom

  • Copy from another measure

    Parameters

    • other: Measure

      defines the other measure to copy from

    Returns void

copyFromFloatsSearch playground for copyFromFloats

  • 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

isEqualsToSearch playground for isEqualsTo

  • 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

transformToRefSearch playground for transformToRef

  • 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

Static CombineToRefSearch playground for CombineToRef

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

    Parameters

    Returns void

Static EmptySearch playground for Empty

  • Creates an empty measure

    Returns Measure

    a new measure

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method