Convert local to global coordinates
gCoord = local2globalcoord(lclCoord,OPTION)
gCoord = local2globalcoord(___,localOrigin)
gCoord = local2globalcoord(___,localAxes)
converts local coordinatesgCoord
= local2globalcoord(lclCoord
,OPTION
)lclCoord
to global coordinatesgCoord
.OPTION
determines the type of local-to-global 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 3-by-Nmatrix. 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.azis theazimuth anglein degrees,elis theelevation anglein degrees, andris the radius in meters. |
||||||||||
|
Types of coordinate transformations, specified as a character vector. Valid values are
|
||||||||||
|
Origin of local coordinate system, specified as a 3-by-Nmatrix containing the rectangular coordinates of the local coordinate system origin with respect to the global coordinate system.Nmust match the number of columns of Default: |
||||||||||
|
Axes of local coordinate system, specified as a 3-by-3-by-Narray. Each page contains a 3-by-3 matrix representing a different local coordinate system axes. The columns of the 3-by-3 matrices specify the localx,y, andzaxes 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 3-by-Nmatrix. 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: Addison-Wesley, 1995.