plus

fun plus(other: P): P

Same as plus, with the internal representation of other.

Return

a new position with the coordinates summed with the other

Parameters

other

the other position


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

Considers both positions as vectors, and sums them.

Return

a new {@link Position} that is the sum of the two.

Parameters

other

the other position