function [xNorth, yEast, zDown] = geodetic2ned( ...
    lat, lon, h, lat0, lon0, h0, spheroid, angleUnit)
%

% Copyright 2012-2023 The MathWorks, Inc.

%#codegen

inDegrees = (nargin < 8 || map.geodesy.isDegree(angleUnit));
[yEast, xNorth, zUp] = geodetic2enuFormula( ...
    lat, lon, h, lat0, lon0, h0, spheroid, inDegrees);
zDown = -zUp;
