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 float[] Get1Value (
        int index
) 
Parameters
index
The index of the element, starting at 0
Return Value
The rotation value. This is an array of four float values. The first value contains the x component of the rotation axis, the second value the y component, the third value the z component, and the fourth value 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 = keyValue_changed.Get1Value(0);
System.Console.WriteLine("x = " + r[0] + ", y = " + r[1] + ", z = " + r[2] + ", angle = " + r[3]);