Supply codes for the angle recognition and length recognition in the touchesMoved method