Tesseract 3.01
/data/source/tesseract-ocr/ccstruct/vecfuncs.h File Reference
#include <math.h>
#include "blobs.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,
 
)    ((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,
 
)    ((a).x * (b).x + (a).y * (b).y)

Function Documentation

int direction ( EDGEPT point)

direction to return

prev point

next point

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines