L3DT users' wiki
Large 3D terrain generator

tan

Description

Calculate the tangent of an angle.

Function prototype

double tan <double:Angle>

Arguments

Name Type Comment
Angle double An angle, in radians, the tangent of which is to be calculated.

Return value

The tangent of the angle, as a double.

Example

double angle
set angle <zs:DegToRad 45> // convert 45 degrees to radians

echo <zs:tan angle> // tan of 45 degrees should be 1

… the output of which is written to the event log by echo as:

1

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/tan.txt · Last modified: 2017/08/31 04:29 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki