function varargout = camupm(lat,long)

%CAMUPM Camera UpVector from geographic coordinates
%
%   CAMUPM(lat,long) sets the axes CameraUpVector 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] = CAMUPM(lat,long) returns the camera position in the
%   projected cartesian coordinate system.
%
%    See also CAMTARGM, CAMPOSM, CAMUP, CAMVA

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

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


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

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

