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
| Parameter | Type | Description |
|---|---|---|
angle | number | Angle in radians. |
Returns
number
Cosine of the angle.