Go to the source code of this file.
Defines | |
| #define | DIAGONAL_SCALING 0.707 |
| #define | DIR_UP 0 |
| #define | DIR_UPRIGHT 1 |
| #define | DIR_RIGHT 2 |
| #define | DIR_DOWNRIGHT 3 |
| #define | DIR_DOWN 4 |
| #define | DIR_DOWNLEFT 5 |
| #define | DIR_LEFT 6 |
| #define | DIR_UPLEFT 7 |
| #define | DIR_SIZE 8 |
| #define | RELDIR_FORWARD 8 |
| #define | RELDIR_BACKWARD 9 |
| #define | RELDIR_LEFT 10 |
| #define | RELDIR_RIGHT 11 |
| #define | RELDIR_FR 12 |
| #define | RELDIR_BR 13 |
| #define | RELDIR_BL 14 |
| #define | RELDIR_FL 15 |
| #define | RELDIR_RANDOM4 16 |
| #define | RELDIR_RANDOM360 17 |
Functions | |
| void | rotate_setup () |
| void | xy_scaling (int dir, float *x, float *y) |
| void | xy_components (int dir, float speed, float *x, float *y) |
| int | dir_opposite (int dir) |
| int | dir_cwise (int dir) |
| int | dir_ccwise (int dir) |
| int | dir_after_rotations (int dir, int rot) |
| int | dir_covered (int dir, int otherdir) |
| int | xy_to_dir (float x, float y) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
see note below |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
uses atan2: slow |
1.3-rc3