Skip to content

Commit a152545

Browse files
committed
formatting
1 parent c4c3305 commit a152545

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/com/neuronrobotics/bowlerstudio/threed/BowlerStudio3dEngine.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public class BowlerStudio3dEngine implements ICameraChangeListener, IMobileBaseU
130130
private volatile boolean focusing = false;
131131
private volatile boolean abortFocus = false;
132132
private int NUMBER_OF_INTERPOLATION_STEPS = 30;
133-
133+
134134
private boolean orthographicMode = false;
135135

136136
/**
@@ -3014,13 +3014,13 @@ public boolean isOrthographicMode() {
30143014

30153015
public void setOrthographicMode(boolean orthographicMode) {
30163016
this.orthographicMode = orthographicMode;
3017-
if(orthographicMode) {
3017+
if (orthographicMode) {
30183018
camera.setFieldOfView(2);
3019-
3020-
}else {
3019+
3020+
} else {
30213021
camera.setFieldOfView(fieldOfViewDefualt);
30223022
}
3023-
getFlyingCamera().setZoomScale(fieldOfViewDefualt/camera.getFieldOfView());
3023+
getFlyingCamera().setZoomScale(fieldOfViewDefualt / camera.getFieldOfView());
30243024
getFlyingCamera().setZoomDepth(getFlyingCamera().getZoomDepth());
30253025
}
30263026

src/main/java/com/neuronrobotics/bowlerstudio/threed/VirtualCameraMobileBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ public void setZoomDepth(double zoomDepth) {
207207
throw new RuntimeException("Zoom can not be set when locked");
208208

209209
// Clamp zoomDepth between -9000 and -2
210-
zoomDepth = Math.max(-9000*getZoomScale(), Math.min(-2, zoomDepth));
210+
zoomDepth = Math.max(-9000 * getZoomScale(), Math.min(-2, zoomDepth));
211211

212212
this.zoomDepth = zoomDepth;
213213

214214
// Dynamically adjust setFarClip to reduce Z-fighting
215-
camera.setFarClip(Math.max(6000*getZoomScale(), -zoomDepth * 2));
215+
camera.setFarClip(Math.max(6000 * getZoomScale(), -zoomDepth * 2));
216216

217217
zoomAffine.setTz(zoomDepth);
218218

0 commit comments

Comments
 (0)