My Project
 
Loading...
Searching...
No Matches
graphics_engine::triangle Namespace Reference

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.
 

Function Documentation

◆ IsValidTriangle()

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.

Parameters
side_aFirst side of the triangle.
side_bSecond side of the triangle.
side_cThird side of the triangle.
Returns
true if the sides satisfy the triangle inequality, false otherwise.