Syntax
[C/C++:]
void gShear2D(int dep, float a);
void gShear3D(int dir, int dep, float a);
[F90:]
subroutine gShear2D(dep, a)
subroutine gShear3D(dir, dep, a)
integer, intent (in) :: dep,dir
real, intent (in) :: a
Arguments
dep
The dependent direction
dir
The direction of the shear
a
Shear factor
Description
The routines gShear2D() and gShear3D() superimpose a shear factor
a along the dependent axis
dep, such that the point one unit along the sheared axis is translated a distance
a in a parallel direction along another axis. The sign of the shear factor will indicate direction.
In the case of gShear2D(), the shear may be with respect to the X or Y axis only and the direction will be parallel to the other axis. In the case of gShear3D(), the shear may be with respect to any axis and in a direction parallel to the axis specified by
dir, the third axis being unaffected.
In space mode (the default) this factor is specified with respect to the current space axes, whilst in picture mode (see gSetTransformMode()) the factor is specified with respect to the picture axis.
If transforming is not on before this routine is called then gShear2D() switches it on.
See Also
gShear2D UsagegSetTransformMode