Sets one element of the MFRotation event-in slot.
Declaring type: EventInMFRotation
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void Set1Value (
        int index,
        float[] value
) 
Parameters
index
The index of the element, starting at 0
value
The new rotation value. This is an array of at least four float 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 a rotation into the first element of 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[] { 0.0f, 1.0f, 0.0f, 0.0f }; // no rotation
set_keyValue.Set1Value(0, r);