Returns the current value of the SFVec2f event-out slot.
C# |
---|
public abstract void GetValue (
float[] value
) |
The following example demonstrates how to get the texture
coordinate of the hit point from a TouchSensor node:
C# |
---|
Vrml.EAI.Node touchSensor = null;
Vrml.EAI.Field.EventOutSFVec2f hitTexCoord_changed = (Vrml.EAI.Field.EventOutSFVec2f)touchSensor.GetEventOut("hitTexCoord_changed");
float[] coord = new float[2];
hitTexCoord_changed.GetValue(coord);
System.Console.WriteLine("x = " + coord[0] + ", y = " + coord[1]);
|