Test Polygon As Convex

Determine if a polygon is convex. Uses vector algebra, and the cross product.
Scenerio: Two polygons are shown. To test, click the buttons below:


SVG Source:
Javascript:

OK in:IE11/CH41/FF35