acos()

Math / Trigonometry

Description

The inverse of cos, returns the arc cosine of a value.

Syntax

float acos(float x)

Parameters

NameTypeDescription
xfloatvalue between -1 and 1

Returns

float

Related

Under the Hood

From Processing.h:

return std::acos(c); static float acos(float x) { return std::acos(x); } static float acos(float x) { return std::acos(x);