UShader Engine Wikia
Advertisement
Tan

Name[]

tan - returns tangent of scalars and vectors.

Synopsis[]

vector1 tan(vector1 a);
vector2 tan(vector2 a);
vector3 tan(vector3 a);
vector4 tan(vector4 a);

Parameters[]

a
Vector or scalar of which to determine the tangent.

Description[]

Returns the tangent of a in radians.

For vectors, the returned vector contains the tangent of each element of the input vector.

Advertisement