Class representing a triangle and provides geometric computations.
The base of the triangle. Must be positive.
The height of the triangle. Must be positive.
Optional
Optional full side lengths [a, b, c] for perimeter calculation.
Gets the area of the triangle.
Gets the base of the triangle.
Gets the height of the triangle.
Gets the perimeter of the triangle if all three sides are provided.
If sides are not fully defined.
Class representing a triangle and provides geometric computations.