mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-07 21:01:03 +00:00
Merge branch 'origin/simulator_maps_v3'
This commit is contained in:
commit
fbcb140d76
3 files changed
+9
-8
No files matched your search
+2
-2
@@ -6,8 +6,8 @@ public class StreamletParameters {
|
|||||||
public double motionScale = 1.0;
|
public double motionScale = 1.0;
|
||||||
public double swarmScale = 1.0;
|
public double swarmScale = 1.0;
|
||||||
public int detailZoom = 15;
|
public int detailZoom = 15;
|
||||||
public double lineScale = 1.0;
|
public double lineScale = 0.1;
|
||||||
public double lineBase = 1.5;
|
public double lineBase = 1.2;
|
||||||
|
|
||||||
public StreamletParameters() {
|
public StreamletParameters() {
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -74,7 +74,8 @@ public class WindStreamletsCanvasOverlay extends FullCanvasOverlay implements Ti
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setWindField(final WindFieldDTO windFieldDTO) {
|
public void setWindField(final WindFieldDTO windFieldDTO) {
|
||||||
this.windFieldDTO = windFieldDTO;
|
this.windFieldDTO = windFieldDTO;
|
||||||
|
this.swarm = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+5
-5
@@ -31,9 +31,9 @@ public class SimulatorField implements VectorField {
|
|||||||
private final Position bdC;
|
private final Position bdC;
|
||||||
|
|
||||||
private final double xScale;
|
private final double xScale;
|
||||||
private double motionFactor;
|
private double motionFactor;
|
||||||
private double lineBase;
|
private double lineBase;
|
||||||
private double lineScale;
|
private double lineScale;
|
||||||
private final double maxLength;
|
private final double maxLength;
|
||||||
private final double particleFactor;
|
private final double particleFactor;
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ public class SimulatorField implements VectorField {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.maxLength = maxWindSpeed;
|
this.maxLength = maxWindSpeed;
|
||||||
this.particleFactor = 2.0;
|
this.particleFactor = 1.0;
|
||||||
final double latAvg = (this.rcEnd.getLatDeg() + this.rcStart.getLatDeg()) / 2.;
|
final double latAvg = (this.rcEnd.getLatDeg() + this.rcStart.getLatDeg()) / 2.;
|
||||||
this.lngScale = Math.cos(latAvg * Math.PI / 180.0);
|
this.lngScale = Math.cos(latAvg * Math.PI / 180.0);
|
||||||
final double difLat = this.rcEnd.getLatDeg() - this.rcStart.getLatDeg();
|
final double difLat = this.rcEnd.getLatDeg() - this.rcStart.getLatDeg();
|
||||||
@@ -151,7 +151,7 @@ public class SimulatorField implements VectorField {
|
|||||||
+ dataAtStep[idx.yTop][2 * idx.xBot + 1] * idx.yMod * (1 - idx.xMod)
|
+ dataAtStep[idx.yTop][2 * idx.xBot + 1] * idx.yMod * (1 - idx.xMod)
|
||||||
+ dataAtStep[idx.yBot][2 * idx.xTop + 1] * (1 - idx.yMod) * idx.xMod
|
+ dataAtStep[idx.yBot][2 * idx.xTop + 1] * (1 - idx.yMod) * idx.xMod
|
||||||
+ dataAtStep[idx.yTop][2 * idx.xTop + 1] * idx.yMod * idx.xMod;
|
+ dataAtStep[idx.yTop][2 * idx.xTop + 1] * idx.yMod * idx.xMod;
|
||||||
return new Vector(avgX / this.lngScale, avgY);
|
return new Vector(avgX, avgY);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user