tesseract  4.0.0-1-g2a2b
points.cpp File Reference
#include <algorithm>
#include <cstdlib>
#include "helpers.h"
#include "serialis.h"
#include "points.h"

Go to the source code of this file.

Functions

 ELISTIZE (ICOORDELT) bool FCOORD
 

Function Documentation

◆ ELISTIZE()

ELISTIZE ( ICOORDELT  )

Definition at line 30 of file points.cpp.

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