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