Period function of planar turning points