Esempio n. 1
0
        public PopulationCentreConnection(PopulationCentre populationCentre1, PopulationCentre populationCentre2)
        {
            this.node1 = populationCentre1.node;
            this.node2 = populationCentre2.node;

            weight = populationCentre1.getWeight(populationCentre2);
        }
Esempio n. 2
0
 internal float getWeight(PopulationCentre other)
 {
     return(population * other.population / (node.position - other.node.position).Length);
 }