Convert local to global coordinates
gCoord = local2globalcoord(lclCoord,OPTION)
gCoord = local2globalcoord(___,localOrigin)
gCoord = local2globalcoord(___,localAxes)
converts local coordinates gCoord
= local2globalcoord(lclCoord
,OPTION
)lclCoord
to global coordinates
gCoord
. OPTION
determines the type of
localtoglobal coordinate transformation.
specifies the origin of the local coordinate system,
gCoord
= local2globalcoord(___,localOrigin
)localOrigin
.
specifies the axes of the local coordinate system,
gCoord
= local2globalcoord(___,localAxes
)localAxes
.

Local coordinates in rectangular or spherical coordinate form, specified as a 3byN matrix. Each column represents one set of local coordinates. If the coordinates are in rectangular form, each column contains the (x,y,z) components. Units are in meters. If the coordinates are in spherical form, each column contains (az,el,r) components. az is the azimuth angle in degrees, el is the elevation angle in degrees, and r is the radius in meters.  

Types of coordinate transformations, specified as a character vector. Valid values are
 

Origin of local coordinate system, specified as a
3byN matrix containing the rectangular coordinates
of the local coordinate system origin with respect to the global coordinate
system. N must match the number of columns of
Default:  

Axes of local coordinate system, specified as a
3by3byN array. Each page contains a 3by3 matrix
representing a different local coordinate system axes. The columns of the
3by3 matrices specify the local x,
y, and z axes in rectangular form with
respect to the global coordinate system. However, you can specify
Default: 

Glabal coordinates in rectangular or spherical coordinate form, returned as a
3byN matrix. The dimensions of

[1] Foley, J. D., A. van Dam, S. K. Feiner, and J. F. Hughes. Computer Graphics: Principles and Practice in C, 2nd Ed. Reading, MA: AddisonWesley, 1995.
azel2phitheta
 azel2uv
 global2localcoord
 phitheta2azel
 rangeangle
 uv2azel