Sets the elements of the MFRotation event-in slot.
Declaring type: EventInMFRotation
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[][] value
) 
Parameters
value
The new rotation values. This is an array of float arrays that contain at least 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 demonstrates how to write five rotations into the "keyValue" field of an OrientationInterpolator node:
C#
Vrml.EAI.Node orientationInterpolator = ...;
Vrml.EAI.Field.EventInMFRotation set_keyValue = (Vrml.EAI.Field.EventInMFRotation)orientationInterpolator.GetEventIn("set_keyValue");
float[][] r = new float[5][];
r[0] = new float[] { 0.0f, 1.0f, 0.0f, 0.0f    }; // no rotation
r[1] = new float[] { 0.0f, 1.0f, 0.0f, 1.5708f }; // 90 degrees around the y axis
r[2] = new float[] { 0.0f, 1.0f, 0.0f, 3.1416f }; // 180 degrees around the y axis
r[3] = new float[] { 0.0f, 1.0f, 0.0f, 4.7124f }; // 270 degress around the y axis
r[4] = new float[] { 0.0f, 1.0f, 0.0f, 0.0f    }; // no rotation
set_keyValue.SetValue(r);