#include <rtmath.h>
Static Public Methods | |
| int | max (int num1, int num2) |
| Returns the bigger one of the given integers. More... | |
| int | min (int num1, int num2) |
| Returns the smaller one of the given integers. More... | |
| int | abs (int num) |
| Returns the absolute value of the given integer. More... | |
| int | rand (int from, int to) |
Creates a pseudorandom number between (and including) the values from and to.If you do not use seed() or randomize() before using rand(), it will initialize itself to return randomized numbers. | |
| void | seed (unsigned long seed) |
| Creates reproducable pseudorandom numbers by seeding the random number generator with a fix number. | |
| void | randomize () |
| Creates unreproducable, but "really random" numbers by seeding the random number generator with a number from a random source (usually the system timer). | |
| double | sqrt (double num) |
| Computes the square root of num. | |
| double | log10 (double num) |
| double | ln (double num) |
| double | exp (double num) |
| double | sin (double num) |
| double | cos (double num) |
| double | tan (double num) |
Static Public Attributes | |
| const int | MAX_INT = 2147483647 |
| The largest positive value which is representable as a 32-bit integer. | |
| const int | MIN_INT = -2147483647-1 |
| The largest negative value which is representable as a 32-bit integer. | |
| const double | PI = 3.14159265359 |
| The most possibly exact representation of the number Pi. | |
| const double | E = 2.71828182846 |
| The most possibly exact representation of the number e (the base of the natural logarithm). | |
Currently under construction.
|
|
Returns the absolute value of the given integer. Note: This function is inline and will be translated into the usual code. So please use it to enhance code readability. |
|
||||||||||||
|
Returns the bigger one of the given integers. Note: This function is inline and will be translated into the usual code. So please use it to enhance code readability. |
|
||||||||||||
|
Returns the smaller one of the given integers. Note: This function is inline and will be translated into the usual code. So please use it to enhance code readability. |