Click or drag to resize

CDUrDirection Method

Returns the direction of a line.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static double rDirection(
	CDB db,
	int line,
	int x_ch,
	int y_ch
)

public static double rDirection(
	CDB db,
	int line,
	int x_ch,
	int y_ch
)

Parameters

db
Type: GeoEngine.Core.GXNetCDB
Database Object
line
Type: SystemInt32
Line Symbol
x_ch
Type: SystemInt32
X reference channel [<define>DB_LOCK_READONLY</define>]
y_ch
Type: SystemInt32
Y reference channel [<define>DB_LOCK_READONLY</define>]

Return Value

Type: Double
direction in degrees azimuth (clockwise relative the +Y direction). <define>GS_R8DM</define> if the line has no data, or if there is a problem. Problems will register errors.
Remarks
The direction is calculated from the first and last non-dummy locations in the X and Y reference channels.
See Also