The trianglelib API reference

Routines for working with triangles.

The two modules inside of this package are packed with useful features for the programmer who needs to support triangles:

shape
This module provides a full-fledged Triangle object that can be instantiated and then asked to provide all sorts of information about its properties.
utils
For the programmer in a hurry, this module offers quick functions that take as arguments the three side lengths of a triangle, and perform a quick computation without the programmer having to make the extra step of creating an object.
advanced
Some advanced stuff.
class trianglelib.shape.Triangle(a, b, c)[source]

A triangle is a three-sided polygon.

foo()

the method docs.

is_similar(triangle)[source]

Return whether this triangle is similar to another triangle.

is_equilateral()[source]

Return whether this triangle is equilateral.

Returns
equal
bool
If the triangle is equilateral.
is_isosceles()[source]

Return whether this triangle is isoceles.

perimeter()[source]

Return the perimeter of this triangle.

area()[source]

Return the area of this triangle.

scale(factor)[source]

Return a new triangle, factor times the size of this one.

Section one

Hello

Section two

Subsection two.one

Subsection