function varargout = camtargm(lat,long,alt)

%CAMTARGM Camera target from geographic coordinates
%
%   CAMTARGM(lat,long,alt) sets the axes CameraTarget 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] = CAMTARGM(lat,long,alt) returns the camera target in the
%   projected cartesian coordinate system.
%
%    See also CAMPOSM, CAMUPM, CAMTARGET, 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,'CameraTarget',[x,y,z])

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

