function [xNorth, yEast, zDown] = ecef2ned( ...
    x, y, z, lat0, lon0, h0, spheroid, angleUnit)
%

% Copyright 2012-2023 The MathWorks, Inc.

%#codegen

inDegrees = (nargin < 8 || map.geodesy.isDegree(angleUnit));

[yEast, xNorth, zUp] = ecef2enuFormula( ...
    x, y, z, lat0, lon0, h0, spheroid, inDegrees);

zDown = -zUp;
