DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.GetAngle | Methods | Properties
Returns the direction angle defined by the shape endpoints.
// C# public double GetAngle( WordBool _reverse );
' VisualBasic Public Function GetAngle( ByVal _reverse As WordBool ) As Double
// Oxygene public function GetAngle( _reverse : WordBool ) : Double;
| Name | Type | Description |
|---|---|---|
| _reverse | WordBool | If True, calculates the angle from the end toward the start; otherwise, from the start toward the end. |
| Type | Description |
|---|---|
| double Double | Direction angle in radians, or 1e30 if the shape does not define a valid direction. |
PURPOSE: Provides a bearing-like direction value for directional symboling, labeling, and geometry analysis.
BEHAVIOR: Uses the shape endpoints to determine the direction. Reversing swaps the direction by evaluating the shape from its end back to its start.
CONSTRAINTS: Meaningful mainly for line-based geometry. Degenerate or directionless shapes return 1e30.