skspatial.objects.Triangle

Methods

altitude(vertex)

Return the line of an altitude of the triangle.

angle(vertex)

Return an interior angle of the triangle.

area()

Return the area of the triangle.

centroid()

Return the centroid of the triangle.

classify(**kwargs)

Classify the triangle as equilateral, isosceles, or scalene.

is_right(**kwargs)

Check if the triangle is a right triangle.

length(side)

Return a side length of the triangle.

line(side)

Return the line along a side of the triangle.

multiple(name_method, inputs)

Return multiple properties of the triangle.

normal()

Return a vector normal to the triangle.

orthocenter(**kwargs)

Return the orthocenter of the triangle.

perimeter()

Return the perimeter of the triangle.

plot_2d(ax_2d[, part])

Plot a triangle in 2D.

plot_3d(ax_3d[, part])

Plot a triangle in 3D.

point(vertex)

Return a point (vertex) of the triangle.