diff --git a/maps-kt-core/src/commonMain/kotlin/center/sciprog/maps/coordinates/GmcCurve.kt b/maps-kt-core/src/commonMain/kotlin/center/sciprog/maps/coordinates/GmcCurve.kt index e09281f..dbe9eb5 100644 --- a/maps-kt-core/src/commonMain/kotlin/center/sciprog/maps/coordinates/GmcCurve.kt +++ b/maps-kt-core/src/commonMain/kotlin/center/sciprog/maps/coordinates/GmcCurve.kt @@ -20,7 +20,10 @@ public class GmcCurve( } } -public fun GmcCurve.reversed(): GmcCurve = GmcCurve(backward, forward, distance) +/** + * Reverse direction and order of ends + */ +public fun GmcCurve.reversed(): GmcCurve = GmcCurve(backward.reversed(), forward.reversed(), distance) /** * Compute a curve alongside a meridian