skspatial.objects.Triangle.perimeter

Triangle.perimeter() numpy.float64[source]

Return the perimeter of the triangle.

Returns
np.float64

The perimeter of the triangle.

Examples

>>> from skspatial.objects import Triangle
>>> Triangle([0, 0], [0, 1], [1, 0]).perimeter().round(3)
3.414
>>> Triangle([0, 1], [1, 1], [2, 0]).perimeter().round(3)
4.65