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