com.esri.arcgis.geometry
Interface IConstructAngle

All Superinterfaces:
Serializable
All Known Implementing Classes:
GeometryEnvironment

public interface IConstructAngle
extends Serializable

Provides access to members that construct an angle using other geometries and measures. This interface is implemented by the GeometryEnvironment object.

Description

ConstructAngle returns the angle formed either by three input points used to define the angle or an input line (and the implied baseline). The constructed angle is returned in radians and is always between -Pi and Pi.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 double constructLine(ILine inLine)
          Constructs the angle between the infinite line containing the input line segment and the positive x-axis.
 double constructThreePoint(IPoint from, IPoint through, IPoint to)
          Constructs the angle included in three points.
 

Method Detail

constructThreePoint

double constructThreePoint(IPoint from,
                           IPoint through,
                           IPoint to)
                           throws IOException,
                                  AutomationException
Constructs the angle included in three points.

Description

ConstructThreePoint returns the Angle formed by three input points. The returned angle is the smaller angle formed by an imaginary line from the first to the second point and the second to the third point. The measure of the constructed angle is between -Pi and Pi. The returned angle can also be thought of as the displacement angle of a line from the second point to the third point with a baseline formed by the first point and second point.

Remarks

ConstructAngle ConstructThreePoint Example

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
from - A reference to a com.esri.arcgis.geometry.IPoint (in)
through - A reference to a com.esri.arcgis.geometry.IPoint (in)
to - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The outAngle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IConstructAngle.constructLine(com.esri.arcgis.geometry.ILine), IConstructAngle.constructThreePoint(com.esri.arcgis.geometry.IPoint, com.esri.arcgis.geometry.IPoint, com.esri.arcgis.geometry.IPoint)

constructLine

double constructLine(ILine inLine)
                     throws IOException,
                            AutomationException
Constructs the angle between the infinite line containing the input line segment and the positive x-axis.

Description

ConstructLine returns the Angle defined by a given Line input. This is the same Angle returned by the ILine::Angle method. The Angle is displacement of the Line from a baseline through the From Point extending in the positive X direction. The returned angle is the smaller angle with measure between -Pi and Pi.

Remarks

IConstructAngle ConstructLine Example

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inLine - A reference to a com.esri.arcgis.geometry.ILine (in)
Returns:
The outAngle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IConstructAngle.constructLine(com.esri.arcgis.geometry.ILine), IConstructAngle.constructThreePoint(com.esri.arcgis.geometry.IPoint, com.esri.arcgis.geometry.IPoint, com.esri.arcgis.geometry.IPoint)