Esempio n. 1
0
 public void setLaunchRodDirection(double launchRodDirection) {
   launchRodDirection = MathUtil.reduce360(launchRodDirection);
   if (MathUtil.equals(this.getDouble(LAUNCH_ROD_DIRECTION, Math.PI / 2.0), launchRodDirection))
     return;
   this.putDouble(LAUNCH_ROD_DIRECTION, launchRodDirection);
   fireChangeEvent();
 }
Esempio n. 2
0
 public void setWindDirection(double direction) {
   direction = MathUtil.reduce360(direction);
   if (this.getBoolean(LAUNCH_INTO_WIND, true)) {
     this.setLaunchRodDirection(direction);
   }
   if (MathUtil.equals(this.getDouble(WIND_DIRECTION, Math.PI / 2), direction)) return;
   this.putDouble(WIND_DIRECTION, direction);
   fireChangeEvent();
 }