public double Distance(RailDockPoint p) { return(this.Position.Distance(p.Position)); }
public bool IsInside(RailDockPoint p) { return(this.Distance(p.Position) < ((RailItem)this.RailItemIntern).Track.RailWidth); }
public static void Bind(RailPlan railPlan, TrackType trackType, RailDockPoint from, RailDockPoint to) { new RailBinder() { railPlan = railPlan, trackType = trackType, from = from, to = to }.Bind(); }