Math > Math.cos

Math.cos

Syntax

Math.cos(x);

Arguments

x An angle measured in radians.

Description

Method; returns the cosine (a value from -1.0 to 1.0) of the angle specified by the argument x. The angle x must be specified in radians. Use the information outlined in the introduction to the Math object to calculate a radian.

Player

Flash 5 or later. In the Flash 4 Player, the methods and properties of the Math object are emulated using approximations and may not be as accurate as the non-emulated math functions supported by the Flash 5 Player.