Skip to content

Api > Mathf > Cos()


Mathf.Cos(number f)⚓︎

Returns the cosine of angle f.

Parameters:⚓︎

Name Type Description
f number The input angle, in radians.

Returns:⚓︎

type Description
number The return value between -1 and 1.

Usage⚓︎

---@type number
local f;


local val0 = Mathf:Cos(f)