本文整理汇总了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);
}
示例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;
}