2018-04-22 13:51:56 +02:00
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2018-04-22 16:14:10 +02:00
|
|
|
|
public class GenEdge {
|
2018-04-22 13:51:56 +02:00
|
|
|
|
public GenVertex r1, r2;
|
|
|
|
|
public double dist;
|
|
|
|
|
|
2018-04-22 16:14:10 +02:00
|
|
|
|
public GenEdge(GenVertex r1, GenVertex r2) {
|
2018-04-22 13:51:56 +02:00
|
|
|
|
this.r1 = r1;
|
|
|
|
|
this.r2 = r2;
|
2018-04-22 16:20:25 +02:00
|
|
|
|
dist = r1.r.Distance(r2.r);
|
2018-04-22 13:51:56 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|