Are the given segments form a Triangle/Hexagon/Square/Parallelogram/Trapezoid/Rhombus.

23 Views Asked by At

So I am creating a game where the user can draw segments to a grid.

When he is finished, my program should decide whether he drew any of the shape mentioned above.

I have line segments with their starting and ending coordinates. Is it possible to decide this with the data I have?

enter image description here