FreeWRL/FreeX3D  3.0.0
EventInSFVec2f.java
1 package vrml.external.field;
4 
5 public class EventInSFVec2f extends EventIn {
6  public EventInSFVec2f() { EventType = FieldTypes.SFVEC2F; };
7 
8  public void setValue(float[] value) throws IllegalArgumentException {
9  if (value.length < 2) {
10  throw new IllegalArgumentException();
11  }
12  Browser.newSendEvent (this, "" + value[0] + " " + value[1]);
13 
14  return;
15  }
16 
17 }