love.math.isConvex
Checks whether a polygon is convex.

PolygonShapes in love.physics, some forms of Meshes, and polygons drawn with love.graphics.polygon must be simple convex polygons.
convex = love.math.isConvex( vertices )
vertices table The vertices of the polygon as a table in the form of {x1, y1, x2, y2, x3, y3, ...}.
convex boolean Whether the given polygon is convex.
convex = love.math.isConvex( x1, y1, x2, y2, ... )
x1 number The position of the first vertex of the polygon on the x-axis.
y1 number The position of the first vertex of the polygon on the y-axis.
x2 number The position of the second vertex of the polygon on the x-axis.
y2 number The position of the second vertex of the polygon on the y-axis.
... number Additional position of the vertex of the polygon on the x-axis and y-axis.
convex boolean Whether the given polygon is convex.