Skip to content

format

typescript
Mathf.Tan(rad)

class: Mathf

description

Returns the tangent value of the angle in radians.

parameter

param_nametypedescription
radnumberThe angle in radians.

return

typedescription
numberThe tangent value of the angle in radians.

code example

typescript
// Calculate the tangent of val
let tan = Mathf.Tan(0) // tan = 0