[refactor] changed function names: 'reduce360' to 'reduce2PI' because the numbers are in radians
This commit is contained in:
parent
02e935d6f7
commit
c6984309d2
@ -305,7 +305,6 @@ public class RocketFigure3d extends JPanel implements GLEventListener {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (picked == null) {
|
if (picked == null) {
|
||||||
log.debug("unselecting");
|
|
||||||
csl.componentClicked(new RocketComponent[] {}, e);
|
csl.componentClicked(new RocketComponent[] {}, e);
|
||||||
} else {
|
} else {
|
||||||
csl.componentClicked(new RocketComponent[] { picked }, e);
|
csl.componentClicked(new RocketComponent[] { picked }, e);
|
||||||
@ -566,14 +565,14 @@ public class RocketFigure3d extends JPanel implements GLEventListener {
|
|||||||
private void setRoll(final double rot) {
|
private void setRoll(final double rot) {
|
||||||
if (MathUtil.equals(roll, rot))
|
if (MathUtil.equals(roll, rot))
|
||||||
return;
|
return;
|
||||||
this.roll = MathUtil.reduce360(rot);
|
this.roll = MathUtil.reduce2PI(rot);
|
||||||
internalRepaint();
|
internalRepaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setYaw(final double rot) {
|
private void setYaw(final double rot) {
|
||||||
if (MathUtil.equals(yaw, rot))
|
if (MathUtil.equals(yaw, rot))
|
||||||
return;
|
return;
|
||||||
this.yaw = MathUtil.reduce360(rot);
|
this.yaw = MathUtil.reduce2PI(rot);
|
||||||
internalRepaint();
|
internalRepaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user