L3DT users' wiki
Large 3D terrain generator

acos

Description

Calculate the arccosine of a cosine value.

Function prototype

double acos <double:value>

Arguments

Name Type Comment
value double A cosine value, the arccosine of which is to be calculated.

Return value

The arccosine of the cosine value, as a double-precision angle, in radians.

Example

echo <zs:RadToDeg <zs:acos 0.5>> // acos of 0.5 should be 60 degrees

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

60

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/acos.txt · Last modified: 2017/08/31 07:25 (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