@spiceErrorCheck<EOL>def rotmat(m1, angle, iaxis):
m1 = stypes.toDoubleMatrix(m1)<EOL>angle = ctypes.c_double(angle)<EOL>iaxis = ctypes.c_int(iaxis)<EOL>mout = stypes.emptyDoubleMatrix()<EOL>libspice.rotmat_c(m1, angle, iaxis, mout)<EOL>return stypes.cMatrixToNumpy(mout)<EOL>
Rotmat applies a rotation of angle radians about axis iaxis to a
matrix. This rotation is thought of as rotating the coordinate
system.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotmat_c.html

:param m1: Matrix to be rotated.
:type m1: 3x3-Element Array of floats
:param angle: Angle of rotation (radians).
:type angle: float
:param iaxis: Axis of rotation X=1, Y=2, Z=3.
:type iaxis: int
:return: Resulting rotated matrix.
:rtype: 3x3-Element Array of floats