translate

fun Geometry.translate(valueX: Double, valueY: Double): Geometry

Translates (moves) the geometry by the specified distances along the X and Y axes.

Return

A new geometry translated by the specified distances.

Parameters

valueX

The translation distance along the X axis.

valueY

The translation distance along the Y axis.