rotateBy

fun rotateBy(degrees: Double, t: Double = 0.5): LineSegment(source)

Rotates the LineSegment around a point on the segment.

Parameters

degrees

The rotation in degrees.

t

The t value of the point on the segment to rotate around, default is 0.5 (mid-point).