Returns the index of the maximum (signed) component of this vector. Note that this is not the absolute maximum, but the signed maximum, so that a vector of x=-10.0, y=5.0, z=1.0 will return 1, not 0.
oInteger = SIVector3.MaxComponentIndex(); |
Integer (index of the maximum signed component of this vector).
// 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 |