Skip to content

Commit d70c294

Browse files
committed
DM-10439: removed experimental code that create getRotationAngle bug
1 parent c564f67 commit d70c294

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/firefly/js/visualize/VisUtil.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,7 @@ export const getRotationAngle= function(plot) {
340340
const wptC = cc.getWorldCoords(makeImageWorkSpacePt(ix, iy));
341341
const wpt2 = cc.getWorldCoords(makeImageWorkSpacePt(ix, iHeight/4));
342342
if (wptC && wpt2) {
343-
if (wptC.y > wpt2.y) {
344-
retval = getPositionAngle(wpt2.getLon(), wpt2.getLat(), wptC.getLon(), wptC.getLat());
345-
}
346-
else {
347-
retval = getPositionAngle(wptC.getLon(), wptC.getLat(), wpt2.getLon(), wpt2.getLat());
348-
}
343+
retval = getPositionAngle(wptC.getLon(), wptC.getLat(), wpt2.getLon(), wpt2.getLat());
349344
}
350345
return retval;
351346
};

0 commit comments

Comments
 (0)