# rotmat

### Description

Calculate a rotation matrix

### Usage

1 | ```
rotmat(alpha = 0, ndim = 2, dim1 = 1, dim2 = 2)
``` |

### Arguments

`alpha` |
rotation angle (in rad) |

`ndim` |
number of dimensions |

`dim1,dim2` |
the plane in which the rotation should take place |

### Details

The rotation will take place in the plane spanned by
dimensions `dim1`

, `dim2`

. All other directions
are left untouched.

Matrix-multiplying `ndim`

-dimensional points with
the rotation matrix rotates the points `alpha`

radians clockwise, see the example.

### Value

matrix of size (`ndim`

x `ndim`

),

### Author(s)

Claudia Beleites

### Examples

1 2 3 4 5 6 7 8 9 10 11 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.