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 values that gets filled with the current rotation values. The number of elements in this array must be at least four times the number of rotation values. The elements at the positions [i x 4] get filled with the x components of the rotation axes, the elements at [i x 4 + 1] with the y components, the elements at [i x 4 + 2] with the z components, and the elements at [i x 4 + 3] with the rotation angles in radians (for 0 <= i < Size).
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");
float[] r = new float[keyValue_changed.Size * 4];
keyValue_changed.GetValue(r);
for (int i = 0; i < r.Length; i += 4)
    System.Console.WriteLine("x = " + r[i] + ", y = " + r[i + 1] + ", z = " + r[i + 2] + ", angle = " + r[i + 3]);