What is the monotonicity of a polygon?

148 Views Asked by At

What is the monotonicity of a polygon and why is it necessary to check the monotonicity?

1

There are 1 best solutions below

4
On

A monotone polygon is such that it is crossed at most two times by lines perpendicular to a given direction.

That means that the polygon can be split in two chains of vertices that are sorted in that direction. Sorted order is beneficial as it can often reduce the complexity of computations.

For instance, the convex hull of a monotone polygon can be computed in time proportional to the number of vertices, O(N).

https://en.wikipedia.org/wiki/Monotone_polygon