in.chull: Convex hull test

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

Description

Checks if points are in the interior of a convex hull.

Usage

1
in.chull(x0, y0, x, y)

Arguments

x0

coordinates of points to check

y0

see x0

x

coordinates defining the convex hull

y

see x

Details

Uses a simple points-in-polygon check combined with the chull function.

Value

comp1

Description of ‘comp1’

comp2

Description of ‘comp2’

Author(s)

Albrecht Gebhardt <[email protected]>

References

Follows an idea from algorithm 112 from CACM (available at http://www.netlib.org/tomspdf/112.pdf)

See Also

in.convex.hull, chull

Examples

1
2
in.chull(c(0,1),c(0,1),c(0,1,0,-1),c(-1,0,1,0))
# should give: TRUE FALSE

sgeostat documentation built on May 29, 2017, 9:04 a.m.

Related to in.chull in sgeostat...