Objectgoog.math.Size
width
:
Width.
|
height
:
Height.
|
No description.
Returns:
The area of the size (width * height).
|
code » | ||
No description.
Returns:
The ratio of the size's width to its height.
|
code » | ||
Clamps the width and height parameters upward to integer values.
Returns:
This size with ceil'd components.
|
code » | ||
No description.
Returns:
A new copy of the Size.
|
code » | ||
No description.
Arguments:
Returns:
True if this Size is the same size or smaller than the target size in both dimensions.
|
code » | ||
Clamps the width and height parameters downward to integer values.
Returns:
This size with floored components.
|
code » | ||
No description.
Returns:
The longer of the two dimensions in the size.
|
code » | ||
No description.
Returns:
The shorter of the two dimensions in the size.
|
code » | ||
No description.
Returns:
True if the size has zero area, false if both dimensions are non-zero numbers.
|
code » | ||
Rounds the width and height parameters to integer values.
Returns:
This size with rounded components.
|
code » | ||
Scales the size uniformly by a factor.
Arguments:
Returns:
This Size object after scaling.
|
code » | ||
Uniformly scales the size to fit inside the dimensions of a given size. The
original aspect ratio will be preserved.
This function assumes that both Sizes contain strictly positive dimensions.
Arguments:
Returns:
This Size object, after optional scaling.
|
code » | ||
Returns a nice string representing size.
Returns:
In the form (50 x 73).
|
code » |
Compares sizes for equality.
Arguments:
Returns:
True iff the sizes have equal widths and equal heights, or if both are null.
|
code » |