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.
convex = love.math.isConvex( vertices )
table vertices{x1, y1, x2, y2, x3, y3, ...}.boolean convexconvex = love.math.isConvex( x1, y1, x2, y2, x3, y3, ... )
number x1number y1number x2number y2number x3number y3boolean convex
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.math.isConvex