ReflexBall Rally
 All Data Structures Files Functions Variables Macros
Data Structures | Macros | Functions
math.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TVector
 

Macros

#define FIX14_SHIFT   14
 
#define FIX14_MULT(a, b)   ((a*b) >> FIX14_SHIFT)
 
#define FIX14_DIV(a, b)   (a << FIX14_SHIFT / b)
 

Functions

long expand (long input)
 
void printNumber (long input, unsigned char decimalBits, unsigned char decimal)
 
void printFix (long input, unsigned char decimal)
 
long sin (int val)
 
long cos (int val)
 
void initVector (TVector *v, long x, long y)
 
void rotate (TVector *v, int val)
 
void printVector (TVector *v)
 

Macro Definition Documentation

#define FIX14_SHIFT   14

Definition at line 4 of file math.h.

#define FIX14_MULT (   a,
 
)    ((a*b) >> FIX14_SHIFT)

Definition at line 6 of file math.h.

#define FIX14_DIV (   a,
 
)    (a << FIX14_SHIFT / b)

Definition at line 7 of file math.h.

Function Documentation

long expand ( long  input)

Definition at line 6 of file math.c.

void printNumber ( long  input,
unsigned char  decimalBits,
unsigned char  decimal 
)

Definition at line 10 of file math.c.

void printFix ( long  input,
unsigned char  decimal 
)

Definition at line 33 of file math.c.

long sin ( int  val)

Definition at line 37 of file math.c.

long cos ( int  val)

Definition at line 41 of file math.c.

void initVector ( TVector v,
long  x,
long  y 
)

Definition at line 45 of file math.c.

void rotate ( TVector v,
int  val 
)

Definition at line 50 of file math.c.

void printVector ( TVector v)

Definition at line 60 of file math.c.