Skip to main content

Mathf.Cos(number f)

Returns the cosine of angle f.

Parameters:

NameTypeDescription
fnumberThe input angle, in radians.

Returns:

typeDescription
numberThe return value between -1 and 1.

Usage

---@type number
local f;


local val0 = Mathf:Cos(f)