Rotate points around a point in a 2-d plane
Arguments
- x
A numeric vector of x coordinates; minimum of 2.
- y
A numeric vector of y coordinates; minimum of 2.
- theta
A numeric scalar with the angle of rotation in degrees; positive is clockwise.
- focus
A numeric vector of x (first element) and y (second element) coordinates for the point around which
xandywill rotate.
Details
Points are shifted to be centered at the focus, then rotated using a rotation matrix, then shifted back to original focus.
Note
This function is called from crw_in_polygon()

