https://9dok.org/document/y6e02k14-period-function-of-planar-turning-points.html