mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
I've moved some conversion methods to PathPolyline (I plan to get rid of PathPolylineUtils.java)
This commit is contained in:
1 parent
5648f103de
commit
a0ca0adf60
1 file changed
+2
-2
+2
-2
@@ -153,8 +153,8 @@ public class WindFieldCanvasOverlay extends FullCanvasOverlay implements TimeLis
|
||||
|
||||
protected void drawScaledArrow(final SimulatorWindDTO windDTO, final double angle, final int index, final boolean drawHead) {
|
||||
|
||||
final double aWidth = Math.max(1., (PathPolylineUtils.knotsToMetersPerSecond(windDTO.getTrueWindSpeedInKnots()) / 2.));
|
||||
final double aLength = Math.max(10., (4. * PathPolylineUtils.knotsToMetersPerSecond(windDTO.getTrueWindSpeedInKnots())));
|
||||
final double aWidth = Math.max(1., (PathPolyline.knotsToMetersPerSecond(windDTO.getTrueWindSpeedInKnots()) / 2.));
|
||||
final double aLength = Math.max(10., (4. * PathPolyline.knotsToMetersPerSecond(windDTO.getTrueWindSpeedInKnots())));
|
||||
//System.out.println("arrow speed: "+windDTO.trueWindSpeedInMetersPerSecond+" angle:"+angle+" aWidth: "+aWidth+" aLength: "+aLength);
|
||||
drawArrow(windDTO, angle, aLength, aWidth, index, drawHead);
|
||||
|
||||
|
||||
Reference in new issue
Block a user