Returns one element of a MFRotation event-out slot.
Declaring type: EventOutMFRotation
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void Get1Value (
        int index,
        float[] value
) 
Parameters
index
The index of the element, starting at 0
value
An array of at least four float values that gets filled with the rotation. The first value gets filled with the x component of the rotation axis, the second value with the y component, the third value with the z component, and the fourth value with the rotation angle in radians.
Collapse/Expand Example
The following example gets the first rotation value from the "keyValue" field of an OrientationInterpolator node and print it to the console:
C#
Vrml.EAI.Node orientationInterpolator = ...;
Vrml.EAI.Field.EventOutMFRotation keyValue_changed = (Vrml.EAI.Field.EventOutMFRotation)orientationInterpolator.GetEventOut("keyValue_changed");
float[] r = new float[4];
keyValue_changed.Get1Value(0, r);
System.Console.WriteLine("x = " + r[0] + ", y = " + r[1] + ", z = " + r[2] + ", angle = " + r[3]);