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