tesseract-doxygen/ccstruct/vecfuncs.h File Reference
#include "tessclas.h"
#include <math.h>
Go to the source code of this file.
Defines |
#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) |
Functions |
int | direction (EDGEPT *point) |
Define 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))
#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