private void method_6() { int count = this.arrayList_3.Count; GPoint gPoint = new GPoint(); double num = 0.0; for (int i = 0; i < count; i++) { PipeLine pipeLine = (PipeLine)this.arrayList_3[i]; int num2 = pipeLine.Size(); for (int j = 0; j < num2; j++) { GPoint gPoint2 = pipeLine[j]; double num3; if (j < num2 - 1) { GPoint deepCopy = pipeLine[j + 1].GetDeepCopy(); num3 = gPoint2.DistanceToPt(deepCopy); } else { num3 = 0.0; } if (i == 0) { if (j != 0) { gPoint2.X = gPoint.X + num; } } else if (j == 0) { gPoint2.X = gPoint.X; } else { gPoint2.X = gPoint.X + num; } num = num3; gPoint = gPoint2.GetDeepCopy(); } this.method_3(this.arrayList_4, this.arrayList_3); } for (int k = 0; k < count; k++) { PipeLine pipeLine2 = (PipeLine)this.arrayList_1[k]; int num4 = pipeLine2.Size(); for (int l = 0; l < num4; l++) { } } for (int m = 0; m < count; m++) { PipeLine pipeLine3 = (PipeLine)this.arrayList_3[m]; int num5 = pipeLine3.Size(); for (int n = 0; n < num5; n++) { } } }
public double GetLenToPt(GPoint ptObj) { GPoint droopPoint = this.GetDroopPoint(ptObj); double result; if (this.IsPtOnLine(droopPoint)) { result = this.GetLenPtToLine(ptObj); } else { double num = ptObj.DistanceToPt(this.gpoint_0); double num2 = ptObj.DistanceToPt(this.gpoint_1); result = ((num <= num2) ? num : num2); } return(result); }