Calculate Distance 1-2 and Distance 1-3 from the three bearings and the known Distance 2-3.
Bearing values are converted from DD.MMSS (degrees, minutes, seconds) to decimal degrees before calculation. The formulas and absolute-value treatment follow the supplied Java code. Results are rounded to three decimal places.