SUMO - Simulation of Urban MObility
|
#include <Bresenham.h>
Data Structures | |
class | BresenhamCallBack |
Static Public Member Functions | |
static void | compute (BresenhamCallBack *callBack, const unsigned int val1, const unsigned int val2) |
The class' only static method "execute" obtains a callback object and performs the computation of the n:m - relationship
Definition at line 42 of file Bresenham.h.
void Bresenham::compute | ( | BresenhamCallBack * | callBack, |
const unsigned int | val1, | ||
const unsigned int | val2 | ||
) | [static] |
compute the bresenham - interpolation between both values the higher number is increased by one for each step while the smaller is increased by smaller/higher. In each step, the callback is executed.
Definition at line 45 of file Bresenham.cpp.
References Bresenham::BresenhamCallBack::execute(), MAX2(), and MIN2().
Referenced by NBNode::computeLanes2Lanes(), and NBEdge::divideOnEdges().