Skip to content

Commit

Permalink
Add support for maps at different elevations
Browse files Browse the repository at this point in the history
  • Loading branch information
MortFred committed Mar 19, 2023
1 parent a9aadb7 commit aef26f6
Show file tree
Hide file tree
Showing 5 changed files with 701 additions and 12 deletions.
14 changes: 12 additions & 2 deletions backend/api/Database/Models/MissionMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,33 @@ public class Boundary
[Required]
public double Y2 { get; set; }

[Required]
public double Z1 { get; set; }

[Required]
public double Z2 { get; set; }

public Boundary()
{
X1 = 0;
Y1 = 0;
X2 = 0;
Y2 = 0;
Z1 = 0;
Z2 = 0;
}

public Boundary(double x1, double y1, double x2, double y2)
public Boundary(double x1, double y1, double x2, double y2, double z1, double z2)
{
X1 = x1;
Y1 = y1;
X2 = x2;
Y2 = y2;
Z1 = z1;
Z2 = z2;
}

public List<double[]> AsMatrix()
public List<double[]> As2DMatrix()
{
return new List<double[]> { new double[] { X1, Y1 }, new double[] { X2, Y2 } };
}
Expand Down
Loading

0 comments on commit aef26f6

Please sign in to comment.