#include <mod128.h>
Definition at line 28 of file mod128.h.
◆ DIR128() [1/3]
◆ DIR128() [2/3]
DIR128::DIR128 |
( |
int16_t |
value | ) |
|
|
inline |
Definition at line 33 of file mod128.h.
39 dir = static_cast<int8_t>(value);
◆ DIR128() [3/3]
DIR128::DIR128 |
( |
const FCOORD |
fc | ) |
|
Definition at line 62 of file mod128.cpp.
67 int high, low, current;
79 current = (high + low) / 2;
80 if (dirtab[current] * fc >= 0)
85 while (high - low > 1);
◆ get_dir()
int8_t DIR128::get_dir |
( |
| ) |
const |
|
inline |
◆ operator+()
Definition at line 62 of file mod128.h.
68 result = dir + add.dir;
◆ operator+=()
Definition at line 70 of file mod128.h.
73 *
this = dir + add.dir;
◆ operator-()
int8_t DIR128::operator- |
( |
const DIR128 & |
minus | ) |
const |
|
inline |
Definition at line 50 of file mod128.h.
55 int16_t result = dir - minus.dir;
61 return static_cast<int8_t>(result);
◆ operator=()
DIR128& DIR128::operator= |
( |
int16_t |
value | ) |
|
|
inline |
Definition at line 42 of file mod128.h.
48 dir = static_cast<int8_t>(value);
The documentation for this class was generated from the following files: