NT Script: Difference between revisions

Jump to navigation Jump to search
102 bytes added ,  08:08, 8 January 2015
m
Moved new ones to namespace
imported>Kosmos
m (→‎Math: Added new math functions.)
imported>Kosmos
m (Moved new ones to namespace)
Line 101: Line 101:
     // code block
     // code block
  }
  }
== Math ==
== Math ==
The math operators are for the most part pretty standard, the only one to watch out for is division which is not the expected / (as that would clash with comments in the naive ntsl parser)
The math operators are for the most part pretty standard, the only one to watch out for is division which is not the expected / (as that would clash with comments in the naive ntsl parser)
Line 111: Line 112:


  / is division
  / is division
sin is sine
cos is cosine
asin is arcsine
acos arcossine
log is logarithm


== NT Deluxe Namespaces ==
== NT Deluxe Namespaces ==
Line 176: Line 167:
| randseed(number) || || Resets the RNG with this value.
| randseed(number) || || Resets the RNG with this value.
|-
|-
| sin(value) || number || Sine.
|-
|cos(value) || number || Cosine.
|-
|asin(value) || number || Arcsine.
|-
|acos(value) || number || Arcossine.
|-
|log(value) || number || Logarithm.
|}
|}


Anonymous user

Navigation menu