Returns the cosine of the specified angle, measured in radians.
[Visual Basic] Public Shared Function Cos( _ ByVal d As Double _ ) As Double [C#] public static double Cos( double d ); [C++] public: static double Cos( double d ); [JScript] public static function Cos( d : double ) : double;
Returns the cosine of the angle d.
If the angle, d, is in degrees, multiply it by /180 to convert it to radians before calling this method.