示例#1
0
文件: Structs.cs 项目: zenwalk/gridda
 public void SetFinal(int2 finalCell, double2 finalIntersection, int finalIndice)
 {
     this.finalCell         = finalCell;
     this.finalIntersection = finalIntersection;
     this.finalIndice       = finalIndice;
 }
示例#2
0
文件: Structs.cs 项目: zenwalk/gridda
 public void SetStart(int2 startCell, double2 startIntersection, int startIndice)
 {
     this.startCell         = startCell;
     this.startIntersection = startIntersection;
     this.startIndice       = startIndice;
 }
示例#3
0
文件: Structs.cs 项目: zenwalk/gridda
        public Intersection(int2 startCell, int2 currentCell, int2 finalCell, double2 startIntersection, double2 finalIntersection, int startIndice, int finalIndice)
        {
            this.startCell   = startCell;
            this.currentCell = currentCell;
            this.finalCell   = finalCell;

            this.startIntersection = startIntersection;
            this.finalIntersection = finalIntersection;

            this.startIndice = startIndice;
            this.finalIndice = finalIndice;
        }
示例#4
0
文件: Structs.cs 项目: zenwalk/gridda
 public static bool NotEquals(double2 lhs, double2 rhs)
 {
     return(lhs != rhs);
 }
示例#5
0
文件: Structs.cs 项目: zenwalk/gridda
 public static bool Equals(double2 lhs, double2 rhs)
 {
     return(lhs == rhs);
 }
示例#6
0
文件: Structs.cs 项目: zenwalk/gridda
 public bool Equals(double2 obj)
 {
     return(Math.Abs(x - obj.x) <= Tolerance && Math.Abs(y - obj.y) <= Tolerance);
 }