rotate

rotate(w, theta)

rotate(w, theta, v)

Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.

Try it yourself:

All functions