moveEndBy

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

Moves the end point of the contour edge by the specified translation vector.

Return

a new instance of the contour edge with the end point moved by the given translation.

Parameters

translation

the translation vector to apply to the end point of the contour edge.

updateTangents

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