function [xEast, yNorth, zUp] = aer2enu(az, elev, slantRange, angleUnit)
%

% Copyright 2012-2023 The MathWorks, Inc.

%#codegen

if nargin < 4 || map.geodesy.isDegree(angleUnit)
    sinfun = @sind;
    cosfun = @cosd;
else
    sinfun = @sin;
    cosfun = @cos;
end

[xEast, yNorth, zUp] = aer2enuFormula(az, elev, slantRange, sinfun, cosfun);
