orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
hydroogmap::OgRayTracer< CellTracer > Class Template Reference#include <ograytracer.h>
Detailed Descriptiontemplate<class CellTracer = SafeLosCellTracer>
|
|
Trace from cell (x0,y0) to cell (x1,y1), inclusive. Sets the endpoints which were reached. CellTracer.traceCell(x,y) is applied to every cell along the trace. rayTrace is guaranteed to start tracing from the (x0,y0) end. If traceCell ever returns false, tracing stops. If we trace right out to (x1,y1), we call cellTracer.traceSucceeded(x1,y1). Uses Bresenham's Line Algorithm (so it's fast). Returns: true: we traced out to (x1,y1) false: the trace was short-circuited |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)