getRotationMatrix2d

PURPOSE ^

obtain a 2d rotation matrix based on an angle in radian

SYNOPSIS ^

function rot = getRotationMatrix2d(a)

DESCRIPTION ^

 obtain a 2d rotation matrix based on an angle in radian

 Syntax: rot = getRotationMatrix2d(angle)

 The angle must be provided in radian.

 See also: getRotationMatrix3d, getRotationMatrix4d, rotatePolytope

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function rot = getRotationMatrix2d(a)
0002 % obtain a 2d rotation matrix based on an angle in radian
0003 %
0004 % Syntax: rot = getRotationMatrix2d(angle)
0005 %
0006 % The angle must be provided in radian.
0007 %
0008 % See also: getRotationMatrix3d, getRotationMatrix4d, rotatePolytope
0009 
0010 % The elk-library: convex geometry applied to crystallization modeling.
0011 %   Copyright (C) 2012 Alexander Reinhold
0012 %
0013 % This program is free software: you can redistribute it and/or modify it
0014 %   under the terms of the GNU General Public License as published by the
0015 %   Free Software Foundation, either version 3 of the License, or (at your
0016 %   option) any later version.
0017 %
0018 % This program is distributed in the hope that it will be useful, but
0019 %   WITHOUT ANY WARRANTY; without even the implied warranty of
0020 %   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0021 %   General Public License for more details.
0022 %
0023 % You should have received a copy of the GNU General Public License along
0024 %   with this program.  If not, see <http://www.gnu.org/licenses/>.
0025 
0026 rot = [cos(a) -sin(a);
0027        sin(a)  cos(a)];
0028

Generated on Sat 18-Jul-2015 16:45:31 by m2html © 2005