How to see vectors for Polygon Node type?


I’m creating a low-tech level plugin in which the shapes of the Figma designs get translated into code. For the polygon, one can find the number of points, but I have a hard time findning out how these points are related to each other. Is there any way to get coodinates to these points, or vectors inbetween these points? Or should I use math when combining the size, together with the amount of points?

Kind regards