search for shortest path algorithm

This commit is contained in:
Artyom Degtyarev 2023-03-24 10:30:13 +03:00
parent ea5305c8d8
commit 24c39c97cd

View File

@ -255,7 +255,6 @@ private fun constructTangentCircles(point: DoubleVector2D,
val center1 = point + normalVectors(direction, r).first
val center2 = point + normalVectors(direction, r).second
val p1 = center1 - point
val p2 = center2 - point
return if (atan2(p1.y, p1.x) - atan2(direction.y, direction.x) in listOf(PI/2, -3*PI/2)) {
mapOf(DubinsPath.SimpleType.L to Circle2D(center1, r),
DubinsPath.SimpleType.R to Circle2D(center2, r))