is_convex | R Documentation |
For a given rs_LINESTRING
vector, test its convexity. Convexity can be tested
strictly or strongly, as well as based on winding.
is_convex(x)
is_ccw_convex(x)
is_cw_convex(x)
is_strictly_convex(x)
is_strictly_ccw_convex(x)
is_strictly_cw_convex(x)
x |
an object of class |
a logical vector
lns <- geom_linestring(
1:20,
runif(20, -5, 5),
rep.int(1:5, 4)
)
is_convex(lns)
is_cw_convex(lns)
is_ccw_convex(lns)
is_strictly_convex(lns)
is_strictly_cw_convex(lns)
is_strictly_ccw_convex(lns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.