Fix curve reverse

This commit is contained in:
Alexander Nozik 2022-10-08 14:16:12 +03:00
parent 6a4531fe1d
commit c679680cf0
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -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