Position2DSurrogate

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

A 2D surrogate for a Position object.

Parameters

x

the x coordinate of the position.

y

the y coordinate of the position.

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 coordinates of the position.

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

The dimension of the position.

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

Functions

Link copied to clipboard

Converts this surrogate to a PositionInput object.