format
typescript
Mathf.ACos(val)class: Mathf
description
Returns the arc cosine (in radians) of val, where val is the cosine value.
parameter
| param_name | type | description |
|---|---|---|
| val | number | The specified value. |
return
| type | description |
|---|---|
number | The arc cosine of val. |
code example
typescript
// Calculate the arc cosine of val
let acos = Mathf.ACos(1); // acos = 0