cos()

Math / Trigonometry

Description

Calculates the cosine of an angle in radians.

Syntax

float cos(float angle)

Parameters

NameTypeDescription
anglefloatangle in radians

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...