Position2DSurrogate

@Serializable
@SerialName(value = "Position2D")
data class Position2DSurrogate(val x: Double, val y: Double) : PositionSurrogate

Surrogate class for the it.unibo.alchemist.model.Position2D interface.

Parameters

x

the first coordinate of the position.

y

the second coordinate of the position.

Constructors

Link copied to clipboard
constructor(x: Double, y: Double)

Properties

Link copied to clipboard
open override val coordinates: DoubleArray

The coordinates of the position.

Link copied to clipboard
open override val dimensions: Int = 2

The number of dimensions of the position.

Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double