movedBy

fun movedBy(translation: Vector2, updateTangents: Boolean = true): ContourEdge(source)

Creates a new contour edge by applying a translation to the current edge.

Return

a new instance of the contour edge, transformed by the given translation.

Parameters

translation

the translation vector to apply to the contour edge.

updateTangents

whether the tangents of adjacent segments should be updated after the transformation.