Skip to content

@technobuddha > library > Geometry > Polygon

Function: isPolygon()

ts
function isPolygon(object: unknown): object is Polygon;

Defined in: is-polygon.ts:13

Determines if the provided object is a Polygon.

A Polygon is defined as an array where every element satisfies the isCartesian predicate.

Parameters

ParameterTypeDescription
objectunknownThe value to test for polygon structure.

Returns

object is Polygon

true if the object is a Polygon, otherwise false.