Functions | |
DLLEXPORT auto | IsValidTriangle (float side_a, float side_b, float side_c) -> bool |
Checks whether three given side lengths satisfy the triangle inequality theorem. | |
DLLEXPORT auto graphics_engine::triangle::IsValidTriangle | ( | float | side_a, |
float | side_b, | ||
float | side_c | ||
) | -> bool |
Checks whether three given side lengths satisfy the triangle inequality theorem.
The triangle inequality states that the sum of any two sides must be greater than the third side. This function returns true if the given sides form a valid triangle, otherwise false.
side_a | First side of the triangle. |
side_b | Second side of the triangle. |
side_c | Third side of the triangle. |
true
if the sides satisfy the triangle inequality, false
otherwise.