Skip to content

format

typescript
Mathf.ACos(val)

class: Mathf

description

Returns the arc cosine (in radians) of val, where val is the cosine value.

parameter

param_nametypedescription
valnumberThe specified value.

return

typedescription
numberThe arc cosine of val.

code example

typescript
// Calculate the arc cosine of val
let acos = Mathf.ACos(1); // acos = 0