M > Math.cos |
![]() ![]() ![]() |
Math.cos
Usage
Math.cos(
x
)
Parameters
x
An angle measured in radians.
Returns
A number.
Description
Method; returns the cosine (a value from -1.0 to 1.0) of the angle specified by the parameter x
. The angle x
must be specified in radians. Use the information outlined in the introduction to the Math object to calculate a radian.
![]() ![]() ![]() |