powered by
This function calculates the clockwise rotation of angle \(\theta\) of a given vector \(v\) in the plane.
rotation(v, theta)
Vector \(v\) in the plane.
Angle \(\theta\) (in radians).
Vector after rotation.
# NOT RUN { # Rotation of angle pi/4 of the vector (0,1) rotation(v = c(0, 1), theta = pi/4) # }
Run the code above in your browser using DataLab