Coordinate of side of a irregular polgyon

  • Level: High School 
  • Thread starter Thread starter NotASmurf
  • Start date Start date
  • Tags Tags
    Coordinate
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 1K views
NotASmurf
Messages
150
Reaction score
2
Hey all, I have a list of line lengths and angles, but only the angles between line n and n-1, can't find a single expression to get the coordinate that works for all cases, i tried
[itex]\sum{\sqrt{\frac{L^2 -c^2}{tan(\sum{\theta})^2+1}}}[/itex] and similar expressions but they all assume triangles can be constructed for each out of straight line functions, which isn't the case, any help appreciated.
 
Mathematics news on Phys.org
I'm not sure I understand what you have and what you are trying to compute.

Here are some questions:
What is the list of line angles? Is it the angle between adjacent segments? Or is it the bearing of each segment?
If it's the angle between adjacent segments, you need the bearing on one segment.

You will also need the starting point. For example, perhaps the vertex between the first and last segment is at (0,0).

Finally, the coordinates of the other vertices can be determined by accumulating changes in X and Y from your starting point.
x1 = x0 + sin(B0)*L0
x2 = x1 + sin(B1)*L1
...

where B0, B1, ... are the angle of the lines clockwise from the X axis and the L's are the lengths.

But the key is to determine exactly what you are starting with in the way of information.