equalsEpsilon

fun equalsEpsilon(other: Rectangle? = definedExternally, epsilon: Double? = definedExternally): Boolean(source)

Compares the provided Rectangle with this Rectangle componentwise and returns true if they are within the provided epsilon, false otherwise.

Return

true if the Rectangles are within the provided epsilon, false otherwise.

Parameters

other

The Rectangle to compare.

epsilon

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

See also