是否.NET框架有一个内置的方法,从度转换为弧度? [英] Does the .net framework have a build-in method to convert from degrees to radians?

查看:183
本文介绍了是否.NET框架有一个内置的方法,从度转换为弧度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,我只能说:

radians  = degrees * Math.PI/180

不过,我认为会有一个内置的框架的方法,因为它是这样一个共同的需求,但我无法找到一个。难道我不看够硬抑或是从.NET框架缺失。

However I expect there to be a built in framework method, as it is such a common requirement, however I cannot find one. Am I not looking hard enough or is it missing from the .net framework.

(请不要告诉我怎么写我自己的方法侮辱我。)

推荐答案

我相信不存在这样的方法。

I believe there is no such method.

的角度,一,必须是弧度。使用Math.PI / 180乘以转换   度弧度。

The angle, a, must be in radians. Multiply by Math.PI/180 to convert degrees to radians.

以上报价来自 Math.Sin 言论部分。

Above quote taken from Math.Sin remarks section.

如果有.NET Framework中的一种方法,文档会建议我们使用,而不是给公式来实现。

If there is one method in .Net framework, documentation would suggest us to use that rather than giving the formula to implement.

这篇关于是否.NET框架有一个内置的方法,从度转换为弧度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆