Returns one element of the MFVec2f event-out slot.
C# |
---|
public abstract void Get1Value (
int index,
float[] value
) |
The following example gets the first texture coordinate from the
"point" field of a TextureCoordinate node and prints it to
the console:
C# |
---|
Vrml.EAI.Node textureCoordinate = ...;
Vrml.EAI.Field.EventOutMFVec2f point_changed = (Vrml.EAI.Field.EventOutMFVec2f)textureCoordinate.GetEventOut("point_changed");
float[] v = new float[2];
point_changed.Get1Value(0, v);
System.Console.WriteLine("x = " + v[0] + ", y = " + v[1]);
|