Sets one element of the MFVec2f event-in slot.
Declaring type: EventInMFVec2f
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 vector value. This is an array of at least two float values. The first value is the x component of the vector, and the second value the y component.
Collapse/Expand Example
The following example demonstrates how to write a texture coordinate value into the first element of the "point" field of a TextureCoordinate node:
C#
Vrml.EAI.Node textureCoordinate = ...;
Vrml.EAI.Field.EventInMFVec2f set_point = (Vrml.EAI.Field.EventInMFVec2f)textureCoordinate.GetEventIn("set_point");
float[] v = new float[] { 0.0f, 0.0f };
set_point.Set1Value(0, v);