in reply to Re^2: Equilateral Pascal's Triangle in perltex
in thread Equilateral Pascal's Triangle in perltex

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
  • Comment on Re^3: Equilateral Pascal's Triangle in perltex

Replies are listed 'Best First'.
Re^4: Equilateral Pascal's Triangle in perltex
by Coach (Initiate) on Jun 02, 2009 at 13:17 UTC
    No, I'm just a really lost high school math student struggling to complete my maths paper. Thank you all for your contributions. I managed to get the triangle to work, but now the page is not large enough to fit all of the fifteen rows.
Re^4: Equilateral Pascal's Triangle in perltex
by Khen1950fx (Canon) on Jun 03, 2009 at 21:52 UTC
    zentara++. It works great, and its the simplest way that I've found to make equilateral triangles.