Sets the value of a SFVec2f event-in slot.
Declaring type: EventInSFVec2f
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[] value
) 
Parameters
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, the second the y component.
Collapse/Expand Example
The following example demonstrates how to translate a texture 0.5 units upwards:
C#
Vrml.EAI.Node textureTransform = ...;
Vrml.EAI.Field.EventInSFVec2f set_translation = (Vrml.EAI.Field.EventInSFVec2f)textureTransform.GetEventIn("set_translation");
float x = 0.0f;
float y = 0.5f;
float[] translation = new float[] { x, y };
set_translation.SetValue(translation);