format
typescript
Mathf.Tan(rad)class: Mathf
description
Returns the tangent value of the angle in radians.
parameter
| param_name | type | description |
|---|---|---|
| rad | number | The angle in radians. |
return
| type | description |
|---|---|
number | The tangent value of the angle in radians. |
code example
typescript
// Calculate the tangent of val
let tan = Mathf.Tan(0) // tan = 0