SITransformation.Scaling

Introduced

v5.1

Description

Sets or returns the scaling SIVector3 of this transformation (the vector is created automatically).

C# Syntax

// get accessor
SIVector3 rtn = ISITransformation.Scaling;
// set accessor
ISITransformation.Scaling = SIVector3;

Examples

JScript Example

/*
	This example demonstrates how to use the Scaling property to return the translation 
	portion of the transformation as an SIVector3 (without having to explicitly create it 
	first) as well as how to set a new value for the scaling.
*/
var t1 = XSIMath.CreateTransform();
// The Scaling property takes care of creating oVec as an SIVector3
var oVec = t1.Translation;
var l_dx = 1;
var l_dy = 1;
var l_dz = 2;
oVec.Set(l_dx, l_dy, l_dz);
t1.Scaling = oVec;
Application.LogMessage(" The x,y,z scaling values of the transformation are: " 
		+ t1.SclX + " " + t1.SclY + " " + t1.SclZ );
// Expected results:
//INFO :  The x,y,z scaling values of the transformation are: 1 1 2

See Also

SITransformation.GetScaling SITransformation.SetScaling