polygon.convexity: Calculate a Blob's Convexity

View source: R/dist_blob_utils.R

polygon.convexityR Documentation

Calculate a Blob's Convexity

Description

Calculate the convexity of a blob(polygon).

Usage

polygon.convexity(blob)

Arguments

blob

A polygon, for example the result of blob.boundary()

Details

Convexity is defined as the ratio of the area of a polygon to the area of its convex hull. A convex polygon thus has a convexity of 1.0.

Value

The convexity of the polygon.


rogerswt/wadeTools documentation built on Feb. 16, 2023, 7:47 a.m.