validate

fun validate(rectangle: Rectangle)(source)

Checks a Rectangle's properties and throws if they are not in valid ranges.

Parameters

rectangle

The rectangle to validate

See also