Returns one element of a MFRotation event-out slot.
C# |
---|
public abstract void Get1Value (
int index,
float[] value
) |
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]);
|