cas_rot_matrix2d | R Documentation |
Calculates a 2D rotation matrix with a given angle x
cas_rot_matrix2d(x)
x |
vector of an angel in radiant |
The calculation is done by Ryacas (yacas) and uses symbolic math. The package Ryacas and the software YACAS http://www.yacas.org/ needs to be installed.
Returns rotation matrix for given angle
Florian Wagner florian.wagner@wagnius.ch
library(Ryacas)
cas_rot_matrix2d(c(pi))
rot_matrix <- cas_rot_matrix2d(c(-pi)|>ysym())
rot_matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.