| CDUAvgAzimuth Method |
Returns average azimuth of selected lines.
Available since Oasis montaj version: 5.0.0
License: Available to anyone with an Oasis Montaj license.
Namespace: Geosoft.Desktop.GXNetAssembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.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(
CDB oDB1,
double d2,
ref double d3
)
Public Shared Sub AvgAzimuth (
oDB1 As CDB,
d2 As Double,
ByRef d3 As Double
)
public:
static void AvgAzimuth(
CDB^ oDB1,
double d2,
double% d3
)
static member AvgAzimuth :
oDB1 : CDB *
d2 : float *
d3 : float byref -> unit
Parameters
- oDB1
- Type: GeoEngine.Core.GXNetCDB
Database Object - d2
- Type: SystemDouble
Precision in degrees (1 to 45) - d3
- Type: SystemDouble
Azimuth value returned
See Also