tesseract  5.0.0-alpha-619-ge9db
points.cpp File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <tesseract/helpers.h>
#include <tesseract/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 18 of file points.cpp.

Function Documentation

◆ ELISTIZE()

ELISTIZE ( ICOORDELT  )

Definition at line 27 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;