Creates a new geometric shape of the same type by applying the provided mapping to the coordinates of the current shape.