Math.Cos Method
.NET Framework 4
Returns the cosine of the specified angle.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- d
- Type: System.Double
An angle, measured in radians.
Return Value
Type: System.DoubleThe cosine of d. If d is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.
The angle, d, must be in radians. Multiply by Math.PI/180 to convert degrees to radians.
Acceptable values of d range from approximately -9223372036854775295 to approximately 9223372036854775295. For values outside this range, the Cos method returns d unchanged rather than throwing an exception.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.