#include <mod128.h>
List of all members.
Detailed Description
Definition at line 29 of file mod128.h.
Constructor & Destructor Documentation
DIR128::DIR128 |
( |
| ) |
[inline] |
DIR128::DIR128 |
( |
inT16 |
value | ) |
[inline] |
DIR128::DIR128 |
( |
const FCOORD |
fc | ) |
|
Definition at line 66 of file mod128.cpp.
{
int high, low, current;
low = 0;
if (fc.y () == 0) {
if (fc.x () >= 0)
dir = 0;
else
dir = MODULUS / 2;
return;
}
high = MODULUS;
do {
current = (high + low) / 2;
if (dirtab[current] * fc >= 0)
low = current;
else
high = current;
}
while (high - low > 1);
dir = low;
}
Member Function Documentation
inT8 DIR128::get_dir |
( |
| ) |
const [inline] |
DIR128 DIR128::operator+ |
( |
const DIR128 & |
add | ) |
const [inline] |
Definition at line 64 of file mod128.h.
{
DIR128 result;
result = dir + add.dir;
return result;
}
Definition at line 72 of file mod128.h.
{
*this = dir + add.dir;
return *this;
}
inT8 DIR128::operator- |
( |
const DIR128 & |
minus | ) |
const [inline] |
ICOORD DIR128::vector |
( |
| ) |
const |
The documentation for this class was generated from the following files: