在我的代码的一部分,我从十进制坐标转换为度/分/秒,我使用这个:
double coord = 59.345235; int sec = (int)Math.Round(coord * 3600); int deg = sec / 3600; sec = Math.Abs(sec % 3600); int min = sec / 60; sec %= 60;
我如何从度/分/秒转换回小数点坐标?
c#
有没有人知道简单的短代码转换它而不使用额外的库?
c# coordinates
c# ×2
coordinates ×1