Isosceles triangle polar coordinates

storman

New member
Joined
Oct 24, 2021
Messages
4
Hi, so I'm trying to write a function which returns the polar coordinates of a triangle which always points outwards. The known variables are length t, angle z and point a, and the unknowns are point b and c. Any help would really be appreciated.
 

Attachments

  • trig problem.png
    trig problem.png
    64.7 KB · Views: 3
Hi, so I'm trying to write a function which returns the polar coordinates of a triangle which always points outwards. The known variables are length t, angle z and point a, and the unknowns are point b and c. Any help would really be appreciated.
Please show us what you have tried and exactly where you are stuck.

Please follow the rules of posting in this forum, as enunciated at:


Please share your work/thoughts about this problem

1652623696101.png
 
Ah apologies. Upon writing this up for you I realised the mistake I made and it's working properly. Just need to figure out how to invert the triangles but here's the function for anyone interested.

angle b = angle y - angle z / 2 ----- (angle of b used for cos and sine)
bx = length t * cos(angle b)
by = length t * sin(angle b)

angle b = 90 - angle y - angle z / 2 ----- (angle of c used for cos and sine)
cx = length t * cos(angle c)
cy = length t * sin(angle c)
 
Top