function [uNorth, vEast, wDown] = ecef2nedv(u, v, w, lat0, lon0, angleUnit)
%

% Copyright 2012-2023 The MathWorks, Inc.

%#codegen

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

[vEast, uNorth, wUp] ...
    = ecef2enuvFormula(u, v, w, lat0, lon0, sinfun, cosfun);

wDown = -wUp;
