ccw: Counter Clockwise Whorl

Description Usage Arguments Value Author(s) See Also Examples

Description

Used for determining if points are in polygons.

Usage

1
ccw(p0, p1, p2)

Arguments

p0

point 0

p1

point 1

p2

point 2

Value

returns 1 or 0 depending on position of points

Author(s)

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

See Also

Lintersect

Examples

1
2
3
4
l1 = list(p1=list(x=0, y=0), p2=list(x=1,y=1))
l2 = list(p1=list(x=6, y=4), p2=list(x=-1,y=-12))

ccw(l1$p1, l1$p2, l2$p1)


Search within the GEOmap package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.