love.math.isConvex
Available since LÖVE 0.9.0 This function is not supported in earlier versions. 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. Function Synopsis convex = love.math.isConvex( vertices ) Arguments table vertices The vertices of the polygon as a table in the form of {x1, y1, x2, y2, x3, y3, ...}.
Returns boolean convex Whether the given polygon is conv