safeDerivative

fun safeDerivative(    p0: Vector2,     c0: Vector2,     p1: Vector2,     t: Double): Vector2

Similar to derivative but handles cases in which p0 and p1 coincide.


fun safeDerivative(    p0: Vector2,     p1: Vector2,     p2: Vector2,     p3: Vector2,     t: Double): Vector2

Similar to derivative but handles cases in which p0 and p1 or p2 and p3 coincide.

Sources

Link copied to clipboard
Link copied to clipboard