Calculate a rotation matrix
rotmat(alpha = 0, ndim = 2, dim1 = 1, dim2 = 2)
rotation angle (in rad)
number of dimensions
the plane in which the rotation should take place
The rotation will take place in the plane spanned by
dim2. All other directions
are left untouched.
ndim-dimensional points with
the rotation matrix rotates the points
radians clockwise, see the example.
matrix of size (
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.