Click or drag to resize

MoreMathDegrees Field

The conversion factor from degrees to radians.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static readonly double Degrees

Field Value

Type: Double
Remarks

This conversion factor makes it easier to compute trigonometric functions if arguments are given in degrees. Since trigonometric methods such as Sin(Double) and Cos(Double) take arguments in dimensionless radians, you must convert a degree input to radians before passing it into one of these functions. This field makes it easy to do so via a simple and visually mnemonic multiplication. If x is in degrees and you wish to take its sine, just write: Math.Sin(x * MoreMath.Degrees).

See Also