public void SetFinal(int2 finalCell, double2 finalIntersection, int finalIndice) { this.finalCell = finalCell; this.finalIntersection = finalIntersection; this.finalIndice = finalIndice; }
public void SetStart(int2 startCell, double2 startIntersection, int startIndice) { this.startCell = startCell; this.startIntersection = startIntersection; this.startIndice = startIndice; }
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; }
public static bool NotEquals(double2 lhs, double2 rhs) { return(lhs != rhs); }
public static bool Equals(double2 lhs, double2 rhs) { return(lhs == rhs); }
public bool Equals(double2 obj) { return(Math.Abs(x - obj.x) <= Tolerance && Math.Abs(y - obj.y) <= Tolerance); }