tesseract  4.00.00dev
points.cpp File Reference
#include <stdlib.h>
#include "helpers.h"
#include "ndminx.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 }