[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Polygon Area Calculation?



I don't believe there is any such function, but as long as your points don't cross over each other in weird ways, calculating it should be fairly straightforward; you can use http://en.wikipedia.org/wiki/Heron's_formula, (1/2)*b*h, or others depending on your preference and application.

Ian