diff --git a/orx-shapes/src/commonMain/kotlin/rectify/RectifiedPath.kt b/orx-shapes/src/commonMain/kotlin/rectify/RectifiedPath.kt index a971bd301..7ab441671 100644 --- a/orx-shapes/src/commonMain/kotlin/rectify/RectifiedPath.kt +++ b/orx-shapes/src/commonMain/kotlin/rectify/RectifiedPath.kt @@ -101,6 +101,13 @@ abstract class RectifiedPath>( } } + /** + * Evaluate curvature for [t] + */ + fun curvature(t: Double): Double { + return originalPath.curvature(rectify(safe(t))) + } + abstract fun sub(t0: Double, t1: Double): Path /**