point on curve function for edge animation #72