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