Click or drag to resize

CDUAvgAzimuth Method

Returns average azimuth of selected lines.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static void AvgAzimuth(
	CDB db,
	double precision,
	ref double azimuth
)

public static void AvgAzimuth(
	CDB db,
	double precision,
	ref double azimuth
)

Parameters

db
Type: GeoEngine.Core.GXNetCDB
Database Object
precision
Type: SystemDouble
Precision in degrees (1 to 45)
azimuth
Type: SystemDouble
Azimuth value returned
Remarks
Direction in degrees azimuth (clockwise relative the +Y direction). The result is in the range -90 < azimuth <= 90. The method handles lines going in opposite directions (they do not average to 0!) The method takes a precision, which is used to generate a series of "test" angles. The dot product of the line directions is taken with each of the test angles, and the absolute values summed. The maximum value occurs at the angle which most closely approximates the trend direction of the lines.
See Also