Trans_Scale

Category: Arithmetics
Since engine version: 1.0 OC

Description

Returns a 3x4 scaling matrix. It can be used as a transformation for AttachMesh or for the "PictureTransformation" or "MeshTransformation" properties (see Meshes).

Syntax

array Trans_Scale(int sx, int sy, int sz);

Parameters

sx:
Magnification factor in X direction.
sy:
[opt] Magnification factor in Y direction.
sz:
[opt] Magnification factor in Z direction.

Remark

If both sy and sz are not given or are given as 0 then the factor sx is used for all three axes. A value of 1000 does not cause any change, smaller values shrink the graphics, larger values enlarge it. Negative values can be used to mirror the graphics with respect to the corresponding axis.

Example

this["PictureTransformation"] = Trans_Scale(2000);
Doubles the picture graphics of the calling object.
See also: AttachMesh, SetAttachTransform, Trans_Identity, Trans_Mul, Trans_Rotate, Trans_Translate
Clonk-Karl, 2010-04