improve cubic bezier's getJointPositionAt