示例#1
0
 public bool Equals(NetworkLink <T> o)
 {
     if (o == null)
     {
         return(false);
     }
     if (!Target.Equals(o.Target))
     {
         return(false);
     }
     return(true);
 }
示例#2
0
 private void OnLinkRemove(ISatellite a, NetworkLink <ISatellite> link)
 {
     mEdges.Remove(new BidirectionalEdge <ISatellite>(a, link.Target, link.Port));
 }
示例#3
0
 public static double DistanceTo(this ISatellite a, NetworkLink <ISatellite> b)
 {
     return(Vector3d.Distance(a.Position, b.Target.Position));
 }