tesseract 4.1.1
points.cpp File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include "helpers.h"
#include "serialis.h"
#include "points.h"

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 

Functions

 ELISTIZE (ICOORDELT) bool FCOORD
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 19 of file points.cpp.

Function Documentation

◆ ELISTIZE()

ELISTIZE ( ICOORDELT  )

Definition at line 28 of file points.cpp.

29 { //Convert to unit vec
30 float len = length ();
31
32 if (len < 0.0000000001) {
33 return false;
34 }
35 xcoord /= len;
36 ycoord /= len;
37 return true;
38}