equalsEpsilon
fun equalsEpsilon(left: Cartesian2? = definedExternally, right: Cartesian2? = definedExternally, relativeEpsilon: Double? = definedExternally, absoluteEpsilon: Double? = definedExternally): Boolean(source)
Compares the provided Cartesians 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 Cartesian.
right
The second Cartesian.
relativeEpsilon
The relative epsilon tolerance to use for equality testing. Default value - 0
absoluteEpsilon
The absolute epsilon tolerance to use for equality testing. Default value - relativeEpsilon