[orx-shapes, orx-mesh-generator] Move frames code from orx-mesh-generator to orx-shapes

This commit is contained in:
Edwin Jakobs
2024-03-19 17:54:03 +01:00
parent 76f96d2278
commit c48aa83ced
10 changed files with 167 additions and 23 deletions

View File

@@ -92,6 +92,14 @@ abstract class RectifiedPath<T : EuclideanVector<T>>(
}
}
fun direction(t: Double): T {
return if (path.empty) {
path.infinity
} else {
path.direction(rectify(safe(t)))
}
}
abstract fun sub(t0: Double, t1: Double): Path<T>
/**