alchemist-interfaces / it.unibo.alchemist.model.interfaces / Position2D / getCoordinate

getCoordinate

abstract fun getCoordinate(dim: Int): Double
Deprecated: Access to coordinates in a 2D manifold should be performed using getX / getY

Allows to access the value of a coordinate.

Parameters

dim -

    the dimension. E.g., in a 2-dimensional implementation, 0
    could be the X-axis and 1 the Y-axis

Return
the coordinate value