SITransformation.Scaling

導入

v5.1

詳細

この変換のスケーリング SIVector3 を設定したり、戻したりします(ベクトルは自動的に作成されます)。

C#構文

// get accessor

SIVector3 rtn = ISITransformation.Scaling;

// set accessor

ISITransformation.Scaling = SIVector3;

JScript の例

/*

	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

関連項目

SITransformation.GetScaling SITransformation.SetScaling