dircheck: Check direction of polygon

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Check direction of polygon for Right Handed orietnation

Usage

1
dircheck(pol)

Arguments

pol

list of x,y

Details

Gets cross product of consecutive points in polygon and returns the sign of each. If most are positive, should try to reverse.

Value

vector of signs

Note

Co-linear values should return zero.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

rev2RH, flipZEE

Examples

1
2
3
4
5
6
7
8
L=list()
L$x=c( 0.2188,-0.6668,-1.0992,-0.5105, 0.5106)
L$y=c( 0.76822, 0.75292,-0.01741,-0.74692,-0.48165)
dircheck(L)

K = rev2RH(L)
###  after reversing, 
dircheck(K)

geophys documentation built on May 1, 2019, 9:26 p.m.