Class Measure
Hierarchy
- Measure
Index
Constructors
Properties
Methods
Constructors
constructor
-
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
defines height dimension
leftSearch playground for left
defines left coordinate
topSearch playground for top
defines top coordinate
widthSearch playground for width
defines width dimension
Methods
add And Transform ToRefSearch playground for addAndTransformToRef
-
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 FromSearch playground for copyFrom
-
Copy from another measure
Parameters
-
other: Measure
defines the other measure to copy from
Returns void
-
copy From FloatsSearch playground for copyFromFloats
-
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
-
is Equals ToSearch playground for isEqualsTo
-
Check equality between this measure and another one
Parameters
-
other: Measure
defines the other measures
Returns boolean
true if both measures are equals
-
transform ToRefSearch playground for transformToRef
Static Combine ToRefSearch playground for CombineToRef
Static EmptySearch playground for Empty
-
Creates an empty measure
Returns Measure
a new measure
Class used to store 2D control sizes