Returns the aspect ratio of the given dimensions, as defined by width over
height.
Returns the center point of the given dimensions.
Returns a Dimensions where the longest length of dimensions will be equal
to the shortest length of to. The shortest length of dimensions will be
proportionally scaled to match the aspect ratio of dimensions.
Returns a Dimensions with the given width and height.
Returns a Dimensions where the shortest length of dimensions will be
equal to the longest length of to. The longest length of dimensions will
be proportionally scaled to match the aspect ratio of dimensions.
Returns a Dimensions fitted to the provided aspect ratio.
Aspect ratio to fit the provided Dimensions to
Dimensions to fit to the specified ratio
Returns a Dimensions with each length rounded down.
Returns true if two dimensions have the same width and height. Otherwise
false.
Returns a dimension where each length is scaled by scaleFactor.
Returns a Dimensions with each length rounded.
Returns a scaled dimensions, where the width is scaled by scaleX and height
is scaled by scaleY.
Returns a Dimensions where each side of dimensions will be reduced proportionally
to have an area less than or equal to the provided to value. The returned
dimensions will be centered within the original bounds of dimensions.
the maximum area this dimensions can have
the dimensions to scale to fit the specified area
Returns a Dimensions with the same width and height.
Converts a dimension to a rectangle, with an optional position.
Returns a Dimensions where the lengths of dimensions are trimmed to fit
into to.
Returns the area of the given
dimensions.