1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Generation/GenEdge.cs

15 lines
252 B
C#
Raw Normal View History

2018-04-22 13:51:56 +02:00
using System;
using UnityEngine;
public class GenEdge {
2018-04-22 13:51:56 +02:00
public GenVertex r1, r2;
public double dist;
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
}
}