Scratch for Java

Operators::cosOf()

"cos" is the abbreviation for "cosine." The cosine of an angle is the ratio between the length of the side adjacent (next to) it on the triangle and the length of the hypotenuse. In the picture above, the cosine of angle A is equal to side "adjacent" divided by side "hypotenuse".

Syntax

Java

.cosOf(x)

Parameters

Name Data Type Description
x double an angle between [0, ..., 360]

Return

double

cosOf()