Tan - Math

Member of: Math Script

Calculates the tangent of the value (in degrees) it is given.

SyntaxEdit

float Function tan(float afValue) native global

ParametersEdit

  • afValue: The value to get the tangent of, in degrees.

Return ValueEdit

The tangent of the passed-in value.

ExamplesEdit

float x = math.tan(180.0) ; x == 0
float y = math.tan(45.0) ; y == 1

See AlsoEdit