Skip to content
On this page

geos.GEOSMinimumRotatedRectangle ⇒ number

Computes the minimum rotated rectangle (MRR) of a geometry. The MRR is similar to an envelope, but not necessarily aligned with coordinate axes. It has minimum area among all rectangles enclosing its input geometry.

Kind: Exported member
Returns: number - A pointer to a new GEOSGeometry object representing the MRR, or NULL on exception.

ParamTypeDescription
geomnumberA pointer to a GEOSGeometry object.

geos.GEOSMinimumRotatedRectangle_r ⇒ number

Computes the minimum-area rotated rectangle containing a geometry.

Kind: Exported member
Returns: number - The pointer to the output geometry, or NULL on exception.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
gnumberThe pointer to the input geometry.