1 function rad = deg2rad(deg)
3 % DEG2RAD: Convert degrees to radians.
11 % deg : Angle in degrees.
15 % rad : Angle in radians.
19 % Convenient utility function for converting degrees to radians, which are
20 % often the required angular units for functions in the NURBS toolbox.
24 % // Convert 35 degrees to radians
27 % Copyright (C) 2000 Mark Spink
29 % This program is free software: you can redistribute it and/or modify
30 % it under the terms of the GNU General Public License as published by
31 % the Free Software Foundation, either version 2 of the License, or
32 % (at your option) any later version.
34 % This program is distributed in the hope that it will be useful,
35 % but WITHOUT ANY WARRANTY; without even the implied warranty of
36 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 % GNU General Public License for more details.
39 % You should have received a copy of the GNU General Public License
40 % along with this program. If not, see <http://www.gnu.org/licenses/>.