HomeUsageComponents
SVG
parsePathgetPointAtLengthinterpolatePathbInterpolatePathgetLengthAtX
Math
incdectoRadtoDegminmaxclampbetweenapproximatesatan2cubicBezier
CoordinatesString
Array
getfindcontains
Transitions
Animations
useValuesuseDifftimingloopdelaydecayspringbInterpolateinterpolateColorbInterpolateColorsnapPointmoving
Transformations
translateZtransformOrigin
Gestures
onScrollonGestureEventpanGestureHandlerhorizontalPanGestureHandlerverticalPanGestureHandlerwithSpringwithDecaywithOffsetpreserveMultiplicativeOffset

approximates(value: Node, approximatesTo: Node, precision = 0.001): number

Returns 1 if the difference between the two values is less than precision. Otherwise returns 0. Default value for the precision is 0.001.