Polygon
While a Polyline is open ended, the polygon defines a closed area and includes the interior. It's a shape consisting of a series of coordinates in an ordered sequence.
It has the same API as Polyline, but the difference is:
- The interior is taken into account when used as an argument to find an intersection.
- It implicitly adds the final closing segment (e.g. when the length is calculated).