Syntax
[C/C++:]
void gBuildMatrix2D(float xo, float yo, float dx, float dy, float angz, float sx, float sy, GMAT2D t2d);
void gBuildMatrix3D(float xo, float yo, float zo, float dx, float dy, float dz, float angx, float angy, float angz, float sx, float sy, float sz, GMAT3D t3d);
[F90:]
subroutine gBuildMatrix2D(xo,yo,dx,dy,angz,sx,sy,t2d)
subroutine gBuildMatrix2D(xo,yo,dx,dy,angz,sx,sy,dep,a,t2d)
subroutine gBuildMatrix3D(xo,yo,zo,dx,dy,dz,angx,angy,angz,sx,sy,sz,t3d)
subroutine gBuildMatrix3D(xo,yo,zo,dx,dy,dz,angx,angy,angz,sx,sy,sz,dir,dep,a,t3d)
real, intent(in) :: xo,yo,zo,dx,dy,dz
real, intent(in) :: angx,angy,angz,sx,sy,sz,a
integer, intent(in) :: dir,dep
real, intent(out) :: t2d(6),t3d(16)
Arguments
xo,yo,zo
Point about which scaling and rotation take place
dx,dy,dz
Translation distances
angx,angy,angz
Angle of rotation in degrees
sx,sy,sz
Scaling factors
dep
The dependent shear direction
dir
The direction of the shear
a
Shear factor
t2d,t3d
Output transformation matrix
Description
The routines gBuildMatrix2D() and gBuildMatrix3D() are called to build a transformation matrix containing a rotation, a translation, scale and optional shear factors. The scaling, rotation, translations and shear factors are all relative to the point
xo, yo, (zo).
See Also
gBuildMatrix2D UsagegCombineMatrix