added checks for gates and moved second rounding check to be in line with the next mark to move towards
#story[1101]
This commit is contained in:
@@ -149,6 +149,19 @@ public class CompoundMark {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to find how far apart the marks that make up this gate are
|
||||
* If this compound mark is only one point return base length of 250m
|
||||
* @return
|
||||
*/
|
||||
public double getRoundingDistance(){
|
||||
if (mark2 != null){
|
||||
return GPSCoordinate.calculateDistanceMeters(mark1.getPosition(), mark2.getPosition());
|
||||
}else{
|
||||
return 250.0 / Constants.NMToMetersConversion;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to get how this mark should be rounded
|
||||
* @return rounding type for mark
|
||||
|
||||
Reference in New Issue
Block a user