minus

fun minus(other: P): P

Same as minus, with the internal representation of other.

Return

a new position with the coordinates summed with the other

Parameters

other

the other position


fun minus(other: Array<Double>): P

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

Return

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

Parameters

other

the other position