Back to my suggestion of using an advanced Canvas type widget.........

On most canvases you can rotate items, so imagine this construction technique for equilateral triangles.

Create 3 identical line segments, stacked right on top of each other. Leave the bottom segment as is. The next segment is then rotated around its left end point, x degrees, in a counterclockwise direction. The last segment is rotated clockwise around its right endpoint, x degrees.

The whole segment set can be a "group", and the resulting triangle can be translated (moved) as a group, and rotated to any angle.

Calculating the x degree value depends on the original line segment lengths chosen, and can be calculated with some simple trig. Of course, for an equilateral triangle, it's just 60 degrees.

BTW, Coach, are you trying to find a way to make "play diagrams" for a team? :-) If so, you might want to check out Tk Patio/Office layout designer


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

In reply to Re^3: Equilateral Pascal's Triangle in perltex by zentara
in thread Equilateral Pascal's Triangle in perltex by Coach

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.