function varargout = camposm(lat,long,alt)

%CAMPOSM Camera position from geographic coordinates
%
%   CAMPOSM(lat,long,alt) sets the axes CameraPosition property of the
%   current map axes to the position specified in geographic coordinates. 
%   The inputs lat and long are assumed to be in the angle units of the 
%   current map axes. 
%
%   [x,y,z] = CAMPOSM(lat,long,alt) returns the camera position in the
%   projected cartesian coordinate system.
%
%    See also CAMTARGM, CAMUPM, CAMPOS, CAMVA

%  Copyright 1996-2000 Systems Planning and Analysis, Inc. and The MathWorks, Inc.
%  Written by: W. Stumpf, A. Kim, T. Debole

if nargin ~= 3;
	error('Incorrect number of input arguments')
end


[x,y,z] = mfwdtran(lat,long,alt);
set(gca,'CameraPosition',[x,y,z])

if nargout >= 1; varargout{1} = x; end
if nargout >= 2; varargout{2} = y; end
if nargout == 3; varargout{3} = z; end

