FancySize extension

on

Properties

diagonal double
The length of the diagonal of a rectangle with this Size.
no setter
squaredDiagonal double
The squared length of the diagonal of a rectangle with this Size.
no setter

Methods

coerceAtLeast(Size minimum) Size
Ensures that this Size is not smaller than the specified minimum in any axis.
coerceAtMost(Size maximum) Size
Ensures that this Size is not larger than the specified maximum in any axis.