prepare to calculate IK in closed form