Example
Scale a Polygon Vertically
geometric.polygonScaleY(polygon, scale[, origin]) returns the vertices resulting from scaling the vertical coordinates of a polygon by a scaleFactor (where 1 is the polygon's current size) from an origin point. The horizontal coordinates remain unchanged. If origin is not specified, the origin defaults to the polygon's centroid.
The returned polygon's area is equal to the input polygon's area multiplied by the scaleFactor.
Adjust the scale factor to see polygonScaleY resize the polygon vertically from its centroid.
See also Polygon Scale X.
Code