Topographer
you say :
"The rectangle is two triangles with angles in degrees (90,60,30)"
But this is NOT TRUE.
It could be so, but it is not the rule.
If you want that
"the rectangle is two triangles with angles in degrees (90,60,30)"
the code that i wrote
is the almost the solution
(because there is also the mirrored solution)