#include <stdio.h>
#include <math.h>
#include "utils.h"
Go to the source code of this file.
|
int | qsqr (int i) |
|
void | swap (char *x, char *y) |
|
short | str_find_delimiter (short start, char *str) |
|
void | reverse (char str[], int length) |
|
char * | citoa (int num, char *str, int base) |
|
int | range_adjust (int val, int in_lower, int in_upper, int out_lower, int out_upper) |
|
int | clamp (int x, int in_lower, int in_upper) |
|
BOOL | point_within_rect (vec2 *pt, rect *r) |
|
BOOL | point_within_quad (vec2 *pt, poly *pl) |
|
BOOL | point_within_polygon (vec2 *pt, vec2 *pt_list, unsigned short n_pt) |
|
char* citoa |
( |
int |
num, |
|
|
char * |
str, |
|
|
int |
base |
|
) |
| |
int clamp |
( |
int |
x, |
|
|
int |
in_lower, |
|
|
int |
in_upper |
|
) |
| |
BOOL point_within_polygon |
( |
vec2 * |
pt, |
|
|
vec2 * |
pt_list, |
|
|
unsigned short |
n_pt |
|
) |
| |
int range_adjust |
( |
int |
val, |
|
|
int |
in_lower, |
|
|
int |
in_upper, |
|
|
int |
out_lower, |
|
|
int |
out_upper |
|
) |
| |
void reverse |
( |
char |
str[], |
|
|
int |
length |
|
) |
| |
short str_find_delimiter |
( |
short |
start, |
|
|
char * |
str |
|
) |
| |
void swap |
( |
char * |
x, |
|
|
char * |
y |
|
) |
| |