function [az, elev, slantRange] = ned2aer(xNorth, yEast, zDown, angleUnit)
%

% Copyright 2012-2023 The MathWorks, Inc.

%#codegen

if nargin < 4 || map.geodesy.isDegree(angleUnit)
    atan2fun = @atan2d;
else
    atan2fun = @atan2;
end

[az, elev, slantRange] = enu2aerFormula(yEast, xNorth, -zDown, atan2fun);
