move

fun move(vertices: List<Vertex>, movedId: VertexId, prevId: VertexId?, nextId: VertexId?, newPosition: GeoPosition, isClosed: Boolean): List<Vertex>

A copy of vertices with movedId at newPosition and the vertices between prevId and it, and between it and nextId, moved in proportion. Either neighbour may be null (an end of an open path has no neighbour on one side): that side then has no stretch. isClosed says the vertices form a ring, so a stretch may run past the end of the list back to its start. Returns vertices unchanged if movedId isn't among them.