mathMethods The bot for calculating transport tasks. Methods of the northwest angle and the smallest residual