Skip to content

textmode.js / Textmodifier / cos

Method: cos() ​

ts
cos(angle): number;

Calculate the cosine of an angle.

Angles are measured in radians. Use radians to convert from degrees.

Parameters ​

ParameterTypeDescription
anglenumberAngle in radians.

Returns ​

number

Cosine of the angle.

Example ​