Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / strokeThickLine

Function: strokeThickLine()

strokeThickLine(mark, x0, y0, x1, y1, widthCells): void

Defined in: packages/wayfinding/src/raster.ts:76

Stamps a centreline (via walkSupercoverLine) thickened to widthCells wide, calling mark(x, y) for every covered cell. Used to stroke unit-polygon boundary edges into wall cells (~2 cells wide per the Wayfinding v2 plan).

The thickening square is centred on each centreline cell rather than axis-biased, so a horizontal or vertical wall of widthCells comes out symmetric.

Parameters

mark

(x, y) => void

x0

number

y0

number

x1

number

y1

number

widthCells

number

Returns

void

Released under commercial licensing.