Learn R Programming

psda (version 1.4.0)

pconvex: Convex verification

Description

Verify convexity of the polygons.

Usage

pconvex(polygon)

Arguments

polygon

A matrix with dimension l x 2, where l represent number of sides polygon.

Value

A boolean.

Examples

Run this code
# NOT RUN {
x <- psim(10, 10) #simulate 10 polygons of 10 sides
x <- x[[1]] 
pconvex(x) 

# }

Run the code above in your browser using DataLab