Menu

RightTriangle

Nicolas Hainaux
Attachments
memo_righttriangle.png (26874 bytes)

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 RightTriangle 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


Related

Doc for dev: Core Objects

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.