[orx-shapes] Add RectifiedPath.curvature
This commit is contained in:
@@ -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>
|
abstract fun sub(t0: Double, t1: Double): Path<T>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user