Options
All
• Public
• Public/Protected
• All

Class Measure

Class used to store 2D control sizes

• Measure

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

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

• 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

copyFromSearch playground for copyFrom

• Copy from another measure

Parameters

• other: Measure

defines the other measure to copy from

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

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

Static CombineToRefSearch playground for CombineToRef

• 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

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