How to measure the 'skew-ness' of a set of vertices?

114 Views Asked by At

Let's say we have, on a 2d axis, four vertices that form a rectangle.

A rectangle is, from one perspective, a stretched out square... so you could say a rectangle is more 'skewed' than a square.

Is it possible to measure this 'skewness'?

I think of this in comparison to what I think are called 'regular' shapes, like a square, whose vertices are all the same distance from the average of the vertices. Aka any regular shape would have a 'skew' value of 0, and any non-regular shape would have a 'skew' value of more than zero.

I'm sorry if this doesn't make sense or if there is better terminology. I haven't studied mathematics beyond high school.

I have spent quite a number of hours trying to work on this myself, as well as a long while researching to see if I could find an answer. I did find maybe one or two pdf's about related subject matter, but I couldn't determine whether they answered my question or not as the maths was beyond me. I'm writing this from my phone so I don't have the links for the stuff I found.

EDIT I'm looking for an equation that can be applied to any number of vertices in random positions. The shape that these vertices form is not known. I've used the rectangle just as an easy example to explain my question.

The only information known is the coordinates of each vertex + any information that can be derived from that, such as the average vertex, the lengths of the edges between all pairs of vertices, etc etc