Increase chance of damage when traversing long links.

This commit is contained in:
2018-03-07 13:51:29 -06:00
parent 2713d6156b
commit d72ccee22f
2 changed files with 53 additions and 8 deletions

View File

@ -1830,6 +1830,10 @@ namespace EduNetworkBuilder
{
return Math.Sqrt(Math.Pow((start.X - dest.X),2) + Math.Pow((start.Y - dest.Y),2)) / 5; //use grid size...
}
public double pixeldistance(Point start, Point dest)
{
return Math.Sqrt(Math.Pow((start.X - dest.X), 2) + Math.Pow((start.Y - dest.Y), 2)); //pixel size, not grid size
}
public double distance(NetworkDevice start, NetworkDevice dest)
{