3D spaceshooter with online scoreboard, online demos, ship building. Now entirely defunct, but might be resurrected
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
sector/src/net/sector/util/DeltaDoubleDeg.java

26 lines
413 B

package net.sector.util;
import com.porcupine.math.Calc;
/**
* Delta double for angles in degrees
*
* @author Ondřej Hruška (MightyPork)
*/
public class DeltaDoubleDeg extends DeltaDouble {
/**
* Delta double for angle
*
* @param d angle
*/
public DeltaDoubleDeg(double d) {
super(d);
}
@Override
public double delta(double dtime) {
return Calc.interpolateDeg(dlast, d, dtime);
}
}