mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
The Vertex struct is now recognized as POD by C++, also fixed the name to be consistent with other love structs
This commit is contained in:
@@ -126,7 +126,7 @@ public:
|
||||
* @param polygon Polygon to triangulate. Must not intersect itself.
|
||||
* @return List of triangles the polygon is composed of.
|
||||
**/
|
||||
std::vector<Triangle> triangulate(const std::vector<vertex> &polygon);
|
||||
std::vector<Triangle> triangulate(const std::vector<Vertex> &polygon);
|
||||
|
||||
/**
|
||||
* Checks whether a polygon is convex.
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
* @param polygon Polygon to test.
|
||||
* @return True if the polygon is convex, false otherwise.
|
||||
**/
|
||||
bool isConvex(const std::vector<vertex> &polygon);
|
||||
bool isConvex(const std::vector<Vertex> &polygon);
|
||||
|
||||
/**
|
||||
* Calculate Simplex noise for the specified coordinate(s).
|
||||
|
||||
Reference in New Issue
Block a user