alchemist-interfaces / it.unibo.alchemist.model.interfaces / Position / minus

minus

abstract operator fun minus(other: P): P

Considers both positions as vectors, and returns the difference between this position and the passed one.

Parameters

other - the other position

Return
a new {@link Position} that is this position minus the one passed.