BTW I think you have used the System.Windows.Shapes.Polygon class accordingly with the Gragpics.DrawPolygon method to draw this shape. With this Polygon class you'll get some helpful properties like Height or Width...

http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawpolygon.aspx

http://msdn.microsoft.com/en-us/library/system.windows.shapes.polygon.aspx

Anyway, as far as I know this is not a C# problem but a mathematical issue. I think you have to calculate it by yourself. I suppose that you can calculte the average X coordinates and the average of Y coordinates, don't you ?

http://msdn.microsoft.com/

http://msdn.microsoft.com/

Anyway, as far as I know this is not a C# problem but a mathematical issue. I think you have to calculate it by yourself. I suppose that you can calculte the average X coordinates and the average of Y coordinates, don't you ?