transform

abstract fun transform(transformer: Transformer<V>): Polygon<V>(source)

Transforms the polygon by applying a transformation to all vertices.

Return

A new polygon with transformed vertices.

Parameters

transformer

The transformation to apply.