set

abstract operator fun set(x: Int, y: Int, value: T)

Set a specific value in the matrix

Parameters

x

The x coordinate

y

The y coordinate

value

The new value


open operator fun set(pos: Coordinate, value: T)

Set a specific value in the matrix

Parameters

pos

The coordinate to set

value

The new value