alchemist-interfaces / it.unibo.alchemist.model.interfaces.geometry / Vector / getCoordinate

getCoordinate

abstract fun getCoordinate(dim: Int): Double

The coordinate of this vector in the specified dimension relatively to the basis its space is described with.

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