Sets the elements of the MFVec2f event-in slot.
Declaring type: EventInMFVec2f
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[][] value
) 
Parameters
value
The new vector values. This is an array of float arrays that contain at least two 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 three texture coordinate values into 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[3][];
v[0] = new float[] { 0.0f, 0.0f }; // lower left
v[1] = new float[] { 1.0f, 0.0f }; // lower right
v[2] = new float[] { 0.5f, 1.0f }; // top center
set_point.SetValue(v);