[orx-shapes] Add RectifiedPath.curvature

This commit is contained in:
Edwin Jakobs
2025-01-04 14:07:25 +01:00
parent 8218805534
commit 08e7a5a354

View File

@@ -101,6 +101,13 @@ abstract class RectifiedPath<T : EuclideanVector<T>>(
}
}
/**
* Evaluate curvature for [t]
*/
fun curvature(t: Double): Double {
return originalPath.curvature(rectify(safe(t)))
}
abstract fun sub(t0: Double, t1: Double): Path<T>
/**