rotation_matrix2D

PURPOSE ^

Returns the matrix: R=[cos(t) -sin(t); sin(t) cos(t)].

SYNOPSIS ^

function R = rotation_matrix2D( theta )

DESCRIPTION ^

 Returns the matrix: R=[cos(t) -sin(t); sin(t) cos(t)].

 y=R*x is the result of rotating x theta degress clockwise about the z-axis.  
 One can retrive the angle of rotation via theta = acos(R(1)).

 INPUTS
   theta   - angle of rotation (radians)

 OUTPUTS
   R       - 2x2 Rotation matrix

 EXAMPLE
   R = rotation_matrix2D( pi/6 )

 DATESTAMP
   29-Sep-2005  2:00pm

 See also ROTATION_MATRIX3D

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003