Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
English doc
#4
(05-13-2015, 05:43 PM)tomaszkax86 Wrote: Looking good, nice work. We added some new stuff to CBot, like recently atan2() and rounding functions. Could you document them as well? We lack proper documentation of existing stuff and we could really use some help with that.

The release (development) version's keyboard (hungarian) is not working properly for me on win7 64 bit pc. For example: No semicolon on keyboard, and froze when I save a scricpt.
Thus I can't test the atan2 function fully.
The round, trunc is more simple.

I added the

Specific math instructions section:


abs Absolute value
rand Random number
round Rounds x to the nearest integer (Release version only)
trunc Return the Real value x truncated to an Integral (Release version only)
pow pow(x, y) x power y
sqrt Square root
acos Cosine
asin Arcsine
atan Arc tangent
atan2 Arctangent of the quotient of its arguments (Release version only)
cos Cosine
sin Sine
tan Tangent

Files:
pdf: https://www.dropbox.com/s/d9uxjebwmqkrno...7.pdf?dl=0
odt: https://www.dropbox.com/s/ms0pk740kuab2t...7.odt?dl=0
html: https://www.dropbox.com/s/9asxwp8354d7i6...7.zip?dl=0


Messages In This Thread
English doc - by lmisi - 05-13-2015, 03:18 PM
RE: English doc - by tomaszkax86 - 05-13-2015, 05:43 PM
RE: English doc - by lmisi - 05-14-2015, 02:29 PM
RE: English doc - by lmisi - 05-27-2015, 02:35 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)