isConvex returns false for a rotated rectangle
Posted: Tue Aug 12, 2014 9:30 pm
Drawing a rotated rectangle as a polygon is missing one side. It's a simple polygon, but math.isConvex returns false, even though it's a perfectly rotated rectangle (by 45 degrees). Any ideas ?
Thanks in advance
Mercurial
Code: Select all
love.graphics.setColor(255, 80, 0)
love.graphics.polygon('fill', 320, 0, 350, 30, 280, 40, 310, 70)
Thanks in advance
Mercurial