Menu

RightTriangle

Nicolas Hainaux
Attachments
memo_righttriangle.png (26874 bytes)
There is a newer version of this page. You can find it here.

A RightTriangle is a special kind of Triangle. It has the same features, plus some extra features.

Possible args for __init__():

  • another RightTriangle
  • ((str, str, str), {'side0':nb0, 'angle1':nb1, 'side1':nb2})

The three strings will be the vertices' names; nb0 and nb2 will be side0's and side1's lengths; nb1 will be the measure of angle1.

other possibilities to create a RightTriangle will be implemented...

Options:

  • rotate_around_barycenter='randomly'|nb: to let the Triangle rotate around its barycenter

Fields:

  • right_angle: (read-only) the right angle of the RightTriangle (as an Angle)
  • leg0, leg1: (read-only) the legs of the RightTriangle (as Segments)
  • legs: (read-only) the legs of the RightTriangle (as a list of Segments)
  • hypotenuse: (read-only) the hypotenuse of the RightTriangle (as a Segment)

Debugging info: no dbg_str() method, so far

Check RightTriangle's complete doc

Back