当前位置: 首页>>代码示例>>C#>>正文


C# PointClass.ConstructAngleIntersection方法代码示例

本文整理汇总了C#中PointClass.ConstructAngleIntersection方法的典型用法代码示例。如果您正苦于以下问题:C# PointClass.ConstructAngleIntersection方法的具体用法?C# PointClass.ConstructAngleIntersection怎么用?C# PointClass.ConstructAngleIntersection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PointClass的用法示例。


在下文中一共展示了PointClass.ConstructAngleIntersection方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetSecondPoint

    private void GetSecondPoint()
    {
      INumberDialog numDialog = new NumberDialogClass();
      // Set the second point equal to the active point which may have been snapped 
      m_secondPoint = m_activePoint;

      // Get the angle
      if (numDialog.DoModal("Angle 2", -45, 2, m_editor.Display.hWnd))
      {
        m_secondAngle = numDialog.Value * Math.PI / 180;
      }
      else
      {
        m_etoolPhase = ToolPhase.Inactive;
        return;
      }

      // Get the intersection point
      IConstructPoint constructPoint = new PointClass();
      constructPoint.ConstructAngleIntersection(m_firstPoint, m_firstAngle, m_secondPoint, m_secondAngle);

      IPoint point = constructPoint as IPoint;
      if (point.IsEmpty)
      {
        m_etoolPhase = ToolPhase.Inactive;
        MessageBox.Show("No Point Calculated");
        return;
      }

      // Draw the calculated intersection point and erase previous snap feedback
      m_activePoint = point;
      m_etoolPhase = ToolPhase.Intersection;
      m_snappingFeedback.Update(null, 0);
      DrawPoint(m_activePoint);
    }
开发者ID:Esri,项目名称:arcobjects-sdk-community-samples,代码行数:35,代码来源:AngleAngleCstr.cs

示例2: ConstructPoint2

        private IPoint ConstructPoint2(IPoint p0, double angle0, IPoint p1, double angle1)
        {
            double angle1Rad = angle0 * Deg2Rad;
            double angle2Rad = angle1 * Deg2Rad;
            IConstructPoint constructionPoint = new PointClass();
            constructionPoint.ConstructAngleIntersection(p0, angle1Rad, p1, angle2Rad);

            return constructionPoint as IPoint;
        }
开发者ID:ismethr,项目名称:gas-geological-map,代码行数:9,代码来源:DrawXZZ.cs


注:本文中的PointClass.ConstructAngleIntersection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。