equalsEpsilon

fun equalsEpsilon(left: Rectangle? = definedExternally, right: Rectangle? = definedExternally, absoluteEpsilon: Double? = definedExternally): Boolean(source)

Compares the provided Rectangles componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.

Return

true if left and right are within the provided epsilon, false otherwise.

Parameters

left

The first Rectangle.

right

The second Rectangle.

absoluteEpsilon

The absolute epsilon tolerance to use for equality testing. Default value - 0

See also