 | 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
Syntaxpublic 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
)
Public Shared Function rDirection (
db As CDB,
line As Integer,
x_ch As Integer,
y_ch As Integer
) As Double
Public Shared Function rDirection (
db As CDB,
line As Integer,
x_ch As Integer,
y_ch As Integer
) As Double
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
)
static member rDirection :
db : CDB *
line : int *
x_ch : int *
y_ch : int -> float
static member rDirection :
db : CDB *
line : int *
x_ch : int *
y_ch : int -> float
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