public static long GetInterSectPointofTwoLinesect(GPoint ptFirstLnBeg, GPoint ptFirstLnEnd, GPoint ptSecondLnBeg, GPoint ptSecondLnEnd, ref GPoint ptInsect) { double angleToPt = ptFirstLnBeg.GetAngleToPt(ptFirstLnEnd); double angleToPt2 = ptSecondLnBeg.GetAngleToPt(ptSecondLnEnd); return(ApplyMath.GetInterSectPointofTwoLinesect(ptFirstLnBeg, angleToPt, ptSecondLnBeg, angleToPt2, ref ptInsect)); }
private void method_3() { IPointCollection pointCollection = (IPointCollection)this.m_pBaseLine; int pointCount = pointCollection.PointCount; if (pointCount != 0) { IPoint point = pointCollection.get_Point(0); IPoint point2 = pointCollection.get_Point(pointCount - 1); GPoint gPoint = new GPoint(); GPoint gPoint2 = new GPoint(); gPoint.X = point.X; gPoint.Y = point.Y; gPoint2.X = point2.X; gPoint2.Y = point2.Y; double angleToPt = gPoint.GetAngleToPt(gPoint2); this.m_pSectionDisp.TranAngle = angleToPt; } }