rotate2 function

Performs a rotation in the plane

Performs a rotation in the plane

rotate2(x, theta = pi)

Arguments

  • x: Matrix to be rotated (2 times n)
  • theta: Rotation in radians

Returns

Returns a matrix of the same dimension as x

Examples

rotate2(cbind(c(1,2),c(2,1)))

Author(s)

Klaus K. Holst

  • Maintainer: Klaus K. Holst
  • License: GPL-3
  • Last published: 2025-01-12