FreeWRL / FreeX3D 4.3.0
EventInSFVec3f.java
1package vrml.external.field;
2import vrml.external.field.FieldTypes;
3import vrml.external.Browser;
4
5public 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}