equalsEpsilon

fun equalsEpsilon(right: TimeInterval? = definedExternally, epsilon: Double? = definedExternally, dataComparer: DataComparer? = definedExternally): Boolean(source)

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

Return

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

Parameters

right

The right hand side interval.

epsilon

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

dataComparer

A function which compares the data of the two intervals. If omitted, reference equality is used.

See also