Skip to content
On this page

geos.GEOSMinimumWidth ⇒ number

Computes the minimum width of a geometry. The minimum width is the smallest distance between two parallel lines that contain the geometry.

Kind: Exported member
Returns: number - A pointer to a LineString containing two points defining the minimum width line segment, or NULL on exception.

ParamTypeDescription
gnumberThe input geometry pointer.

geos.GEOSMinimumWidth_r ⇒ number

Computes the minimum width of a geometry in a reentrant way. The minimum width is the smallest distance between two parallel lines that contain the geometry.

Kind: Exported member
Returns: number - A pointer to a LineString containing two points defining the minimum width line segment, or NULL on exception.

ParamTypeDescription
handlenumberThe context handle pointer to use for error reporting.
gnumberThe input geometry pointer.