Continuous Volume
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
x Range
logical x bounds
y Range
logical y bounds
z Range
logical z bounds
torus
if true, distances wrap at all three boundaries
cell Size
cubic-cell side length. Defaults to min(xSize, ySize, zSize) / cellSizeDivisor, or 1.0 for degenerate ranges. Must be positive.
name
display name