function [x, y, z] = geodetic2ecef(spheroid, phi, lambda, h, varargin)
%

% Copyright 2004-2023 The MathWorks, Inc.

%#codegen

% Reference
% ---------
% Paul R. Wolf and Bon A. Dewitt, "Elements of Photogrammetry with
% Applications in GIS," 3rd Ed., McGraw-Hill, 2000 (Appendix F-3).

    narginchk(4,5)
    [spheroid, phi, lambda, h, inDegrees] = parseTransformationInputs( ...
        spheroid, phi, lambda, h, varargin{:});
    [x, y, z] = geodetic2ecefFormula(spheroid, phi, lambda, h, inDegrees);
end
