Position2DSurrogate

data class Position2DSurrogate(val x: Double, val y: Double, val coordinates: List<Double> = listOf(x, y), val dimensions: Int = 2) : PositionSurrogate

A 2D surrogate for a Position object.

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, coordinates: List<Double> = listOf(x, y), dimensions: Int = 2)

Properties

Link copied to clipboard
open override val coordinates: List<Double>

the list of coordinates of the position, in this case x, y

Link copied to clipboard
open override val dimensions: Int

the number of dimensions of the position, in this case 2

Link copied to clipboard
val x: Double

the x coordinate of the position

Link copied to clipboard
val y: Double

the y coordinate of the position

Functions

Link copied to clipboard

Converts this surrogate to a PositionInput object.