diff --git a/src/org/openstreetmap/josm/gui/util/imagery/CameraPlane.java b/src/org/openstreetmap/josm/gui/util/imagery/CameraPlane.java
index 620f9eb940..249d0ad2b9 100644
|
a
|
b
|
public class CameraPlane {
|
| 182 | 182 | setRotation(vec.getPolarAngle(), vec.getAzimuthalAngle()); |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | | public Vector3D getRotation() { |
| | 185 | public synchronized Vector3D getRotation() { |
| 186 | 186 | return this.rotation; |
| 187 | 187 | } |
| 188 | 188 | |
diff --git a/src/org/openstreetmap/josm/gui/util/imagery/Vector3D.java b/src/org/openstreetmap/josm/gui/util/imagery/Vector3D.java
index d643ed5152..92d1e05c47 100644
|
a
|
b
|
|
| 1 | 1 | // License: GPL. For details, see LICENSE file. |
| 2 | 2 | package org.openstreetmap.josm.gui.util.imagery; |
| 3 | 3 | |
| | 4 | import org.openstreetmap.josm.tools.Utils; |
| | 5 | |
| 4 | 6 | /** |
| 5 | 7 | * A basic 3D vector class (immutable) |
| 6 | 8 | * @author Taylor Smock (documentation, spherical conversions) |
| … |
… |
public final class Vector3D {
|
| 236 | 238 | public boolean equals(Object o) { |
| 237 | 239 | if (o instanceof Vector3D) { |
| 238 | 240 | Vector3D other = (Vector3D) o; |
| 239 | | return this.x == other.x && this.y == other.y && this.z == other.z; |
| | 241 | return Utils.equalsEpsilon(this.x, other.x) && Utils.equalsEpsilon(this.y, other.y) && Utils.equalsEpsilon(this.z, other.z); |
| 240 | 242 | } |
| 241 | 243 | return false; |
| 242 | 244 | } |