示例#1
0
 public double Distance(RailDockPoint p)
 {
     return(this.Position.Distance(p.Position));
 }
示例#2
0
 public bool IsInside(RailDockPoint p)
 {
     return(this.Distance(p.Position) < ((RailItem)this.RailItemIntern).Track.RailWidth);
 }
示例#3
0
文件: RailBinder.cs 项目: chcg/Rail
 public static void Bind(RailPlan railPlan, TrackType trackType, RailDockPoint from, RailDockPoint to)
 {
     new RailBinder()
     {
         railPlan = railPlan, trackType = trackType, from = from, to = to
     }.Bind();
 }