Click or drag to resize
CDUAvgAzimuth Method
Returns average azimuth of selected lines.

Available since Oasis montaj version: 5.0
License: Available to anyone with an Oasis Montaj license.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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.
Syntax
public static void AvgAzimuth(
	CGXNETCore gxNetShared,
	CDB db,
	double precision,
	ref double azimuth
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
db
Type: GeoEngine.Core.GXNetXCDB
Database Object
precision
Type: SystemDouble
Precision in degrees (1 to 45)
azimuth
Type: SystemDouble
Azimuth value returned
See Also