FancySize extension

on

Properties

diagonal double

Available on Size, provided by the FancySize extension

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

Available on Size, provided by the FancySize extension

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

Methods

coerceAtLeast(Size minimum) Size

Available on Size, provided by the FancySize extension

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

Available on Size, provided by the FancySize extension

Ensures that this Size is not larger than the specified maximum in any axis.