#include <math.h>
#include "blobs.h"
Go to the source code of this file.
Macros |
#define | point_diff(p, p1, p2) |
#define | CROSS(a, b) ((a).x * (b).y - (a).y * (b).x) |
#define | SCALAR(a, b) ((a).x * (b).x + (a).y * (b).y) |
#define | LENGTH(a) ((a).x * (a).x + (a).y * (a).y) |
Macro Definition Documentation
#define CROSS |
( |
|
a, |
|
|
|
b |
|
) |
| ((a).x * (b).y - (a).y * (b).x) |
#define LENGTH |
( |
|
a | ) |
((a).x * (a).x + (a).y * (a).y) |
#define point_diff |
( |
|
p, |
|
|
|
p1, |
|
|
|
p2 |
|
) |
| |
Value:((p).x = (p1).x - (p2).x, \
(p).y = (p1).y - (p2).y, \
(p))
Definition at line 43 of file vecfuncs.h.
#define SCALAR |
( |
|
a, |
|
|
|
b |
|
) |
| ((a).x * (b).x + (a).y * (b).y) |
Function Documentation
int direction |
( |
EDGEPT * |
point | ) |
|
direction to return
prev point
next point
Definition at line 43 of file vecfuncs.cpp.
{
int dir;
dir = 0;
dir = 1;
dir = -1;
return dir;
}