Grid

@Serializable
@SerialName(value = "Grid")
data class Grid(val name: String, val cols: Int, val rows: Int, val cellSize: Double, val originX: Double = 0.0, val originY: Double = 0.0, val torus: Boolean = false) : SpatialSpaceDescriptor(source)

A rectangular grid space. torus wraps motion at the edges.

Constructors

Link copied to clipboard
constructor(name: String, cols: Int, rows: Int, cellSize: Double, originX: Double = 0.0, originY: Double = 0.0, torus: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val cols: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rows: Int
Link copied to clipboard