This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
functions [2016/04/24 21:01] – created korshun | functions [2017/03/19 17:50] (current) – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | + | < | |
- | This is a list of all simple | + | |
- | + | ||
- | ===== Math functions ===== | + | |
- | + | ||
- | ==== abs ==== | + | |
- | '' | + | |
- | + | ||
- | Returns the absolute value of x. | + | |
- | + | ||
- | === Examples === | + | |
- | + | ||
- | abs(1) == 1; | + | |
- | + | ||
- | ==== min ==== | + | |
- | '' | + | |
- | + | ||
- | Returns the lesser of two numbers. | + | |
- | + | ||
- | ==== max ==== | + | |
- | '' | + | |
- | + | ||
- | Returns the greater of two numbers. | + | |
- | + | ||
- | ==== clamp ==== | + | |
- | '' | + | |
- | + | ||
- | Limits x between a and b and returns the result. | + | |
- | + | ||
- | ==== cmp ==== | + | |
- | '' | + | |
- | + | ||
- | Compares two numbers and returns the result: | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + |