|
|
|
|
@ -99,17 +99,17 @@ public class NextMarkController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private double calculateXRotate(double zRotation) {
|
|
|
|
|
if (zRotation > 360) {
|
|
|
|
|
zRotation -=360;
|
|
|
|
|
} else if (zRotation < 0) {
|
|
|
|
|
zRotation += 360;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (zRotation > 180) {
|
|
|
|
|
zRotation = 360 - zRotation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 110;
|
|
|
|
|
// if (zRotation > 360) {
|
|
|
|
|
// zRotation -=360;
|
|
|
|
|
// } else if (zRotation < 0) {
|
|
|
|
|
// zRotation += 360;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (zRotation > 180) {
|
|
|
|
|
// zRotation = 360 - zRotation;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return 70;
|
|
|
|
|
//return 90 - 20 * Math.cos(Math.toRadians(zRotation));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|