function angleInRadians = deg2rad(angleInDegrees)
%MATLAB Code Generation Library Function

%   Copyright 2015 The MathWorks, Inc.
%#codegen

narginchk(1,1);
coder.internal.assert(isfloat(angleInDegrees), ...
    'MATLAB:deg2rad:nonFloatInput');
c = cast(pi/180,'like',real(angleInDegrees));
angleInRadians = c*angleInDegrees;
