ContinuousVolume

constructor(context: AgentModel.Context<A>, xRange: ClosedRange<Double>, yRange: ClosedRange<Double>, zRange: ClosedRange<Double>, torus: Boolean = false, cellSize: Double = run { val xs = xRange.endInclusive - xRange.start val ys = yRange.endInclusive - yRange.start val zs = zRange.endInclusive - zRange.start val smallest = minOf(xs, ys, zs) if (smallest > 0.0) smallest / Defaults.cellSizeDivisor else 1.0 }, name: String = "continuousVolume")(source)

Parameters

context

the context whose agents this projection positions

xRange

logical x bounds

yRange

logical y bounds

zRange

logical z bounds

torus

if true, distances wrap at all three boundaries

cellSize

cubic-cell side length. Defaults to min(xSize, ySize, zSize) / cellSizeDivisor, or 1.0 for degenerate ranges. Must be positive.

name

display name