Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

rotate.h File Reference

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)


Define Documentation

#define DIAGONAL_SCALING   0.707
 

#define DIR_DOWN   4
 

#define DIR_DOWNLEFT   5
 

#define DIR_DOWNRIGHT   3
 

#define DIR_LEFT   6
 

#define DIR_RIGHT   2
 

#define DIR_SIZE   8
 

#define DIR_UP   0
 

#define DIR_UPLEFT   7
 

#define DIR_UPRIGHT   1
 

#define RELDIR_BACKWARD   9
 

#define RELDIR_BL   14
 

#define RELDIR_BR   13
 

#define RELDIR_FL   15
 

#define RELDIR_FORWARD   8
 

#define RELDIR_FR   12
 

#define RELDIR_LEFT   10
 

#define RELDIR_RANDOM360   17
 

#define RELDIR_RANDOM4   16
 

#define RELDIR_RIGHT   11
 


Function Documentation

int dir_after_rotations int    dir,
int    rot
 

int dir_ccwise int    dir
 

int dir_covered int    dir,
int    otherdir
 

see note below

int dir_cwise int    dir
 

int dir_opposite int    dir
 

void rotate_setup  
 

void xy_components int    dir,
float    speed,
float *    x,
float *    y
 

void xy_scaling int    dir,
float *    x,
float *    y
 

int xy_to_dir float    x,
float    y
 

uses atan2: slow


Generated on Sun Mar 2 18:50:27 2003 for eounicorn by doxygen1.3-rc3