rotate
fun rotate(rotationInDegrees: Double, anchorT: Double = 0.5, updateTangents: Boolean = true)(source)
Rotates the current edge by a specified angle around an anchor point relative to the edge. Optionally updates the tangents of adjacent segments after the rotation.
Parameters
rotationInDegrees
the rotation angle in degrees to be applied.
anchorT
the relative position along the edge (range 0.0 to 1.0) defining the anchor point of rotation. Defaults to 0.5 (the center of the edge).
updateTangents
whether the tangents of adjacent segments should be updated after the rotation. Defaults to true.