mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-18 02:00:58 +00:00
work in progress
Please enter the commit message for your changes. Lines starting
This commit is contained in:
1 parent
55c87a4bcf
commit
b3c4569fbe
2 files changed
+5
-4
No files matched your search
+4
-3
@@ -104,10 +104,10 @@ public class RectangularBoundary implements Boundary {
|
||||
|
||||
Distance hStep = appWidth.scale(1.0/(hPoints-1));
|
||||
Distance vStep = appHeight.scale(1.0/(vPoints-1));
|
||||
Position[][] grid = new Position[hPoints][vPoints];
|
||||
Position[][] grid = new Position[vPoints][hPoints];
|
||||
|
||||
for (int i = 0; i < hPoints; i++) {
|
||||
for (int j = 0; j < vPoints; j++) {
|
||||
for (int i = 0; i < vPoints; i++) {
|
||||
for (int j = 0; j < hPoints; j++) {
|
||||
grid[i][j] = appSouthWest.
|
||||
translateGreatCircle(getNorth(), vStep.scale(j)).
|
||||
translateGreatCircle(getEast(), hStep.scale(i));
|
||||
@@ -132,6 +132,7 @@ public class RectangularBoundary implements Boundary {
|
||||
}
|
||||
|
||||
@Override
|
||||
//may not return a rectangular lattice!
|
||||
public List<Position> extractLattice(Distance hStep, Distance vStep) {
|
||||
|
||||
Position startPoint = appSouthWest;
|
||||
|
||||
Reference in new issue
Block a user