public LineOfTablCross(float[][] matrix, List <LineOfTabl> Table, int A, int B) : base(matrix) { one = new LineOfTabl(Table[A]); too = new LineOfTabl(Table[B]); Pos1 = A; Pos2 = B; for (int i = 0; i < dot.Length; i++) { dot[i] = Formul(one.GetD(), too.GetD(), one.GetDot()[i], too.GetDot()[i]); } }
public LineOfTabl(LineOfTabl other) { this.dot = new float[other.dot.Length]; for (int i = 0; i < other.dot.Length; i++) { this.dot = other.dot; } this.z = other.z; this.d = other.d; this.p = new bool[other.p.Length]; for (int i = 0; i < other.p.Length; i++) { this.p = other.p; } this.a = new bool[other.a.Length]; for (int i = 0; i < other.a.Length; i++) { this.a = other.a; } }