function [deltaX, deltaY, deltaZ] = ecefOffset( ...
    spheroid, phi1, lambda1, h1, phi2, lambda2, h2, angleUnit)
%

% Copyright 2012-2023 The MathWorks, Inc.

%#codegen

    narginchk(7,8)
    
    inDegrees = nargin < 8 || map.geodesy.isDegree(angleUnit);
    
    [deltaX, deltaY, deltaZ] = ecefOffsetFormula( ...
        spheroid, phi1, lambda1, h1, phi2, lambda2, h2, inDegrees);
end
