mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Use love::Vector (8 bytes) instead of love::Vertex (20 bytes) for love.math.triangulate and love.math.isConvex.
This commit is contained in:
@@ -68,14 +68,6 @@ struct Vertex
|
||||
unsigned char r, g, b, a;
|
||||
};
|
||||
|
||||
struct Triangle
|
||||
{
|
||||
Triangle(const Vertex &x, const Vertex &y, const Vertex &z)
|
||||
: a(x), b(y), c(z)
|
||||
{}
|
||||
Vertex a, b, c;
|
||||
};
|
||||
|
||||
inline int nextP2(int x)
|
||||
{
|
||||
x += (x == 0);
|
||||
|
||||
Reference in New Issue
Block a user