Organisation, documentation, mathlib

This commit is contained in:
2025-08-28 11:11:59 +10:00
parent a9bfc1b0e3
commit 6596bfcc85
13 changed files with 948 additions and 1 deletions

45
extlibs/math/README.md Normal file
View File

@@ -0,0 +1,45 @@
# math library
This library adds extra math functions to Ground.
## Functions
### fun -double !sinVal -double &input
Gets the sin of input.
### fun -double !cosVal -double &input
Gets the cos of input.
### fun -double !tanVal -double &input
Gets the tan of input.
### fun -double !sqrtVal -double &input
Gets the square root of input.
### fun -int !modVal -int &a -int &b
Gets the remainder of a divided by b.
### fun -double !floorVal -double &input
Gets the floor of input.
### fun -double !ceilVal -double &input
Gets the ceil of input.
### fun -double !roundVal -double &input
Rounds the input to the nearest integer.
### fun -int !randomInt -int &min -int &max
Gets a random integer between min and max (inclusive).
### fun -double !randomDouble -double &min -double &max
Gets a random double between min and max (inclusive).