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 float[][] GetValue ()
Return Value
The current rotation values. This is an array of float arrays that contain four values. The first value is 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 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 = keyValue_changed.GetValue();
for (int i = 0; i < r.Length; ++i)
    System.Console.WriteLine("x = " + r[i][0] + ", y = " + r[i][1] + ", z = " + r[i][2] + ", angle = " + r[i][3]);