map

abstract fun map(mapping: (Float, Float) -> Pair<Float, Float>): T

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