L3DT users' wiki
Large 3D terrain generator

DegToRad

Description

Convert an angle in degrees to radians.

Function prototype

double DegToRad <double:value>

Arguments

Name Type Comment
value double The angle in degrees to be converted to radians.

Return value

A double-precision angle, measured in radians.

Example

echo <zs:DegToRad 180>

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

3.14159

Comments

None.

See also

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