![](../icons/Help.png) | 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.GXNetXAssembly: 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.
Syntaxpublic static void AvgAzimuth(
CGXNETCore gxNetShared,
CDB db,
double precision,
ref double azimuth
)
Public Shared Sub AvgAzimuth (
gxNetShared As CGXNETCore,
db As CDB,
precision As Double,
ByRef azimuth As Double
)
public:
static void AvgAzimuth(
CGXNETCore^ gxNetShared,
CDB^ db,
double precision,
double% azimuth
)
static member AvgAzimuth :
gxNetShared : CGXNETCore *
db : CDB *
precision : float *
azimuth : float byref -> unit
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