make2Drot {utilitiesR}R Documentation

make 2D rotation matrix anticlockwise by theta

Description

make 2D rotation matrix anticlockwise by theta

Usage

  make2Drot(th)

Arguments

th

amount to rotate by (radians)

Value

the matrix:

≤ft( \begin{array}{cc} \cos(th) & -\sin(th)\\ \sin(th) & \cos(th) \end{array}\right)

Note

make2Drot(th) * t(x,y) gives (x,y) rotated by angle theta anticlockwise.


[Package utilitiesR version 1.8.4 Index]