Exemple #1
0
 public static bool Equals(Int32Point point1, Int32Point point2)
 {
     return(point1 == point2);
 }
Exemple #2
0
 public bool Equals(Int32Point value)
 {
     return(this == value);
 }
Exemple #3
0
 public static bool Contains(this Int32Rect This, Int32Point point)
 {
     return(This.Contains(point.X, point.Y));
 }
Exemple #4
0
 public Int32Point(Int32Point clone)
 {
     this.X = clone.X;
     this.Y = clone.Y;
 }
 /// <summary>
 /// 设置单元格被需要连线的起始/终止点给占用,必须先设置输出管脚。
 /// </summary>
 /// <param name="gridPos">单元格坐标</param>
 /// <param name="pathIndex">路径标识,从 0 开始,必须和 PathPlan() 的参数相一致。</param>
 /// <returns>成功与否?</returns>
 public bool OccupiedByPath(Int32Point gridPos, int pathIndex)
 {
     return(this.OccupiedByPath(gridPos.X, gridPos.Y, pathIndex));
 }