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