Example
Rotate a Line
geometric.lineRotate(line, angle[, origin]) returns the coordinates resulting from rotating a line about an origin by an angle in degrees. If origin is not specified, the origin defaults to the midpoint of the line.
Adjust the angle and origin to see lineRotate rotate a line.
Code