GINO Graphics Suite - GINO v9.0  

gScale

Syntax

[C/C++:]
void gScale2D(float sx, float sy);
void gScale3D(float sx, float sy, float sz);
[F90:]
subroutine gScale2D(sx, sy)
subroutine gScale3D(sx, sy, sz)
real, intent (in) :: sx,sy,sz

Arguments

sx,sy,sz
Scale factors for X,Y and Z coordinates respectively

Description

The routines gScale2D() and gScale3D() set independent scale factors for X,Y (and Z) coordinates by modifying the current modelling transformation matrix.

In space mode (the default) this scaling is specified with respect to the current space axes, whilst in picture mode (see gSetTransformMode()) the scaling is specified with respect to the picture axes.

For negative values of sx, sy and sz, the routine mirrors the drawing about the axis by the absolute scale factor sx, sy or sz.

Transforming is switched on if not on already.

See Also

gScale2D Usage
gSetTransformMode