L3DT users' wiki
Large 3D terrain generator

sin

Description

Calculate the sine of an angle.

Function prototype

double sin <double:Angle>

Arguments

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

Return value

The sine of the angle, as a double.

Example

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

echo <zs:sin angle> // sin of 30 degrees should be 0.5 

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

0.5

Comments

None.

See also

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