Interface IConstructAngle
Provides access to members that construct an angle using other geometries and measures. This interface is implemented by the GeometryEnvironment object.
[Guid("7E9812D8-5AC6-11D1-8352-0000F8775BE9")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IConstructAngle
Methods
ConstructLine(ILine)
Constructs the angle between the infinite line containing the input line segment and the positive x-axis.
double ConstructLine(ILine inLine)
Parameters
inLineILine
Returns
Remarks

Private Shared Sub constructLine()
Dim pPtFrom As IPoint
Dim pPtTo As IPoint
pPtFrom = New Point
pPtTo = New Point
Dim pLine As ILine
pLine = New Line
pPtFrom.PutCoords(0, 0)
pPtTo.PutCoords(1, 1)
pLine.PutCoords(pPtFrom, pPtTo)
Dim pCAngle As IConstructAngle
Dim pGEnv As GeometryEnvironment
pGEnv = New GeometryEnvironment
pCAngle = pGEnv
Dim dAngle As Double
dAngle = pCAngle.ConstructLine(pLine)
MsgBox("The angle from the x-axis to the line is " & dAngle)
End Sub
ConstructThreePoint(IPoint, IPoint, IPoint)
Constructs the angle included in three points.
double ConstructThreePoint(IPoint from, IPoint through, IPoint to)
Parameters
Returns
Remarks

// Calculates the angle defined by the 3 points.
public void constructAngle()
{
IPoint fromPoint = new ESRI.ArcGIS.Geometry.Point();
IPoint throughPoint = new ESRI.ArcGIS.Geometry.Point();
IPoint toPoint = new ESRI.ArcGIS.Geometry.Point();
fromPoint.PutCoords(1, 0);
toPoint.PutCoords(1, 1);
throughPoint.PutCoords(0, 0);
GeometryEnvironment geometryEnvironment = new GeometryEnvironment();
IConstructAngle constructAngle = geometryEnvironment as IConstructAngle;
double angle = constructAngle.ConstructThreePoint(fromPoint, throughPoint, toPoint);
System.Windows.Forms.MessageBox.Show("The constructed angle is " + angle);
}
' Calculates the angle defined by the 3 points.
Public Sub t_construct_angle()
Dim pPtFrom As IPoint
Dim pPtThrough As IPoint
Dim pPtTo As IPoint
pPtFrom = New Point
pPtThrough = New Point
pPtTo = New Point
pPtFrom.PutCoords(1, 0)
pPtTo.PutCoords(1, 1)
pPtThrough.PutCoords(0, 0)
Dim pCAngle As IConstructAngle
Dim pGEnv As GeometryEnvironment
pGEnv = New GeometryEnvironment
pCAngle = pGEnv
Dim dAngle As Double
dAngle = pCAngle.ConstructThreePoint(pPtFrom, pPtThrough, pPtTo)
MsgBox("The constructed angle is " & dAngle)
End Sub