mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Add love.math.isConvex()
Checks whether a given polygon is convex or not.
This commit is contained in:
@@ -108,6 +108,14 @@ public:
|
||||
**/
|
||||
std::vector<Triangle> triangulate(const std::vector<vertex> &polygon);
|
||||
|
||||
/**
|
||||
* Checks whether a polygon is convex.
|
||||
*
|
||||
* @param polygon Polygon to test.
|
||||
* @return True if the polygon is convex, false otherwise.
|
||||
**/
|
||||
bool isConvex(const std::vector<vertex> &polygon);
|
||||
|
||||
/**
|
||||
* Calculate Simplex noise for the specified coordinate(s).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user