如何将弧度转换为度数和分钟 [英] How to convert the radians into degrees and minutes
本文介绍了如何将弧度转换为度数和分钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
private static double ToRadian(double val)
{
return (Math.PI / 180) * val;
}
如何将弧度转换为度数和分钟
请帮帮我。谢谢你
我尝试过的事情:
how to convert the radians into degrees and minutes
please help me.Thank u
What I have tried:
private static double ToRadian(double val)
{
return (Math.PI / 180) * val;
}
推荐答案
看看:从十进制度转换为度数分钟秒十分之一。
一许多可能性:
Take a look: Converting from Decimal degrees to Degrees Minutes Seconds tenths.
One of many possibilities:
double decimal_degrees;
double minutes = (decimal_degrees - Math.Floor(decimal_degrees)) * 60.0;
double seconds = (minutes - Math.Floor(minutes)) * 60.0;
double tenths = (seconds - Math.Floor(seconds)) * 10.0;
// get rid of fractional part
minutes = Math.Floor(minutes);
seconds = Math.Floor(seconds);
tenths = Math.Floor(tenths);
这篇关于如何将弧度转换为度数和分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文