Get the local coordinates of the polygon's vertices.
This function has a variable number of return values. It can be used in a nested fashion with love.graphics.polygon.
x1, y1, x2, y2, ... x8, y8 = PolygonShape:getPoints( )
None.
number x1
number y1
number x2
number y2
And so on, for up to eight vertices.
This function may have up to 16 return values, since it returns two values for each vertex in the polygon. In other words, it can return the coordinates of up to 8 points.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/PolygonShape:getPoints