Method
Xojo.Math.Cos
Warning
This item was deprecated in version 2020r2. Please use Cos as a replacement.
Description
Returns the cosine of the specified value.
Sample code
Gets the cosine of a 45 degree angle:
Using Xojo.Math
Dim angle As Double = 45 * (Pi/180) ' Convert 45 degrees to radians
Dim value As Double
value = Cos(angle) ' value = 0.707
Compatibility
All project types on all supported operating systems.