GINO Graphics Suite - GINO v9.0  

gCombineMatrix

Syntax

[C/C++:]
void gCombineMatrix2D(GMAT2D a2d, float xo, float yo, float dx, float dy, float angz, float sx, float sy, GMAT2D t2d);
void gCombineMatrix3D(GMAT3D a3d, 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 gCombineMatrix2D(a2d, xo, yo, dx, dy, angz, sx, sy, t2d)
subroutine gCombineMatrix2D(a2d, xo, yo, dx, dy, angz, sx, sy, dep, a, t2d)

subroutine gCombineMatrix3D
(a3d, xo, yo, zo, dx, dy, dz, angx, angy, angz, sx, sy, sz, t3d)
subroutine gCombineMatrix3D(a3d, xo, yo, zo, dx, dy, dz, angx, angy, angz, sx, sy, sz, dir, dep, a, t3d)

real, intent(in) :: a2d(6),a3d(16),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

a2d,a3d
Input transformation matrix

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

= GXAXIS, X-axis
= GYAXIS, Y-axis
= GZAXIS, Z-axis

dir
The direction of the shear

= GXAXIS, X-axis
= GYAXIS, Y-axis
= GZAXIS, Z-axis

a
Shear factor

t2d,t3d
Output transformation matrix

Description

The routines gCombineMatrix2D() and gCombineMatrix3D() computes a transformation matrix that is the composition of the input matrix a2d or a3d with a rotation, translation,  scale and optional shear factors.

The scaling, rotation , translation and shear are all relative to the point xo, yo, (zo).

See Also

gCombineMatrix3D Usage
gBuildMatrix