SIVector3.MaxComponentIndex

説明

このベクトルの最大(符号付き)コンポーネントのインデックスを戻します。これが絶対最大数ではなく、符号付き最大数の場合、x=-0、y=5.0、z=1.0 のベクトルは 0 ではなく1を戻します。

C#構文

Int16 SIVector3.MaxComponentIndex();

スクリプト構文

oInteger = SIVector3.MaxComponentIndex();

戻り値

Integer(このベクトルの最大符号付きコンポーネントのインデックス)

JScript の例

// Create 3D vectors.

var v1 = XSIMath.CreateVector3( -10.0, 5.0, 1.0 );

// Note that this is actually a method, so it 

// takes the method syntax in JScript

var maxIdx = v1.MaxComponentIndex();

Application.LogMessage( maxIdx );

// Expected result

//INFO : 1

関連項目

SIVector3.MaxComponent SIVector3.MinComponent SIVector3.MinComponentIndex SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion