Mapping Toolbox | ![]() ![]() |
Camera target in geographic coordinates
Syntax
Description
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.
Examples
Look down the spine of the Andes from a location 3 Earth radii above the surface:
figure; axesm('globe','galt',0); gridm('glinestyle','-') load topo; meshm(topo,topolegend,size(topo)); demcmap(topo) displaym(worldlo('POline')) lightm(-80,-180); material(0.6*[ 1 1 1]) plat = 10; plon = -65; tlat = -30; tlon = -70; camtargm(tlat,tlon,0); camposm(plat,plon,3); camupm(tlat,tlon); camva(20) set(gca,'CameraViewAngle',30)
See Also
camposm |
Camera position from geographic coordinates |
camupm |
Camera UpVector from geographic coordinates |
camtarget |
Camera target |
camva |
Camera view angle |
![]() | camposm | camupm | ![]() |