|
|
|
|
@ -136,12 +136,8 @@ public class ArrowController {
|
|
|
|
|
* @param bearing The bearing to use to rotate arrow.
|
|
|
|
|
*/
|
|
|
|
|
private void updateWindBearing(Bearing bearing) {
|
|
|
|
|
|
|
|
|
|
//We need to display wind-from, so add 180 degrees.
|
|
|
|
|
Bearing fromBearing = Bearing.fromDegrees(bearing.degrees() + 180d);
|
|
|
|
|
|
|
|
|
|
//Rotate the wind arrow.
|
|
|
|
|
arrowStackPane.setRotate(fromBearing.degrees());
|
|
|
|
|
arrowStackPane.setRotate(bearing.degrees());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|