Options
All
• Public
• Public/Protected
• All

# Class Measure

Class used to store 2D control sizes

• Measure

## 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

## Properties

height: number

defines height dimension

left: number

defines left coordinate

top: number

defines top coordinate

width: number

defines width dimension

## Methods

• 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

• 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

• ##### a: Measure

Input measure

• ##### b: Measure

Input measure

• ##### result: Measure

the resulting bounding measure

#### Returns void

• Creates an empty measure

#### Returns Measure

a new measure

## Legend

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

Theme