Math.cos
cos — Returns the cosine of an angle measured in radians.
Description
Math.cos(number radians)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
radians | number | No |
Return values
number. A number between -1 and 1 representing cosine of the angle.
Examples
Example #1 – cos example