swap

fun swap(other: Path?): Path

Exchanges the verb array, Point array, weights, and FillMode with other. Cached state is also exchanged. swap() internally exchanges pointers, so it is lightweight and does not allocate memory.

Return

this

Parameters

other

Path exchanged by value

See also