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:
hba56
2017-08-12 22:27:27 +12:00
parent fe91264aec
commit f386a4b989
3 changed files with 48 additions and 7 deletions
@@ -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