Beispiel #1
0
        //构造偏转角交点法
        private void button6_Click(object sender, EventArgs e)
        {
            delFeature("point");
            IPoint fromPoint = new PointClass();

            fromPoint.PutCoords(0, 0);
            IPoint toPoint = new PointClass();

            toPoint.PutCoords(1, 1);
            ILine line = new LineClass();

            line.PutCoords(fromPoint, toPoint);
            double          startAngle        = Math.PI / 4;
            double          endAngle          = Math.PI / 4;
            IConstructPoint constructionPoint = new PointClass();

            constructionPoint.ConstructDeflectionIntersection(line, startAngle, endAngle, false);
            IPoint point = constructionPoint as IPoint;

            addFeature("point", fromPoint);
            addFeature("point", toPoint);
            addFeature("point", point);
            axMapControl1.Refresh();
        }