User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.getangle_wordbool

Table of Contents

ITGIS_Shape.GetAngle method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.GetAngle | Methods | Properties

Returns the direction angle defined by the shape endpoints.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public double GetAngle(
  WordBool _reverse
);
' VisualBasic
Public Function GetAngle(
  ByVal _reverse As WordBool
) As Double
// Oxygene
public
  function GetAngle(
    _reverse : WordBool
  ) : Double;

Parameters

Name Type Description
_reverse WordBool If True, calculates the angle from the end toward the start; otherwise, from the start toward the end.

Result

Type Description
double
Double
Direction angle in radians, or 1e30 if the shape does not define a valid direction.

Remarks

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.

2026/07/05 01:25

Page Tools