I forgot my A Level maths!!! 
How do I find the centre of gravity in a 2D shape? The shapes have four edges, intersecting at arbitrary angles.
If these were physical (or even in an image editor) then I could seperate them into combinations of triangles and rectangles, but I don't see how that can work in this case.
The shapes in question are generated on the fly in a computer program. The coordinate of each corner is known.
Thanks genies!

How do I find the centre of gravity in a 2D shape? The shapes have four edges, intersecting at arbitrary angles.
If these were physical (or even in an image editor) then I could seperate them into combinations of triangles and rectangles, but I don't see how that can work in this case.
The shapes in question are generated on the fly in a computer program. The coordinate of each corner is known.
Thanks genies!
