Rotation of polygon

rotate(mat, origin, alpha)

Arguments

mat

Two-column numeric matrix. Coordinates of the polygon.

origin

Numeric vector of length two. Origin.

alpha

Numeric scalar. Rotation degree in radians.