#include <mod128.h>
Definition at line 29 of file mod128.h.
◆ DIR128() [1/3]
◆ DIR128() [2/3]
DIR128::DIR128 |
( |
int16_t |
value | ) |
|
|
inline |
◆ DIR128() [3/3]
DIR128::DIR128 |
( |
const FCOORD |
fc | ) |
|
Definition at line 65 of file mod128.cpp.
68 int high, low, current;
80 current = (high + low) / 2;
81 if (
dirtab[current] * fc >= 0)
86 while (high - low > 1);
◆ get_dir()
int8_t DIR128::get_dir |
( |
| ) |
const |
|
inline |
◆ operator+()
Definition at line 64 of file mod128.h.
69 result = dir + add.dir;
◆ operator+=()
Definition at line 72 of file mod128.h.
74 *
this = dir + add.dir;
◆ operator-()
int8_t DIR128::operator- |
( |
const DIR128 & |
minus | ) |
const |
|
inline |
Definition at line 52 of file mod128.h.
56 int16_t result = dir - minus.dir;
62 return (int8_t) result;
◆ operator=()
DIR128& DIR128::operator= |
( |
int16_t |
value | ) |
|
|
inline |
The documentation for this class was generated from the following files:
- /home/stweil/src/github/tesseract-ocr/tesseract/ccstruct/mod128.h
- /home/stweil/src/github/tesseract-ocr/tesseract/ccstruct/mod128.cpp