translate

abstract fun translate(offset: V): Polygon<V>(source)

Translates the polygon by a given offset vector.

Return

A new polygon with all vertices translated by the offset.

Parameters

offset

The vector by which to translate the polygon.