measuring distance and angle with smooth curve