The namespace Geometry contains the following functions
Geometry
Confirms whether the three sides can form a triangle
Parameters: int64_t a - The first side int64_t b - The second side int64_t c - The third side
int64_t a
int64_t b
int64_t c
Return value: bool - true if a, b, c can form a triangle. false otherwise.
bool
true
a
b
c
false
Sample usage (after including header file):
bool a = Geometry::isTriangle(3, 4, 5); // true
Confirms whether the three sides can form a right triangle
Return value: bool - true if a, b, c can form a right triangle. false otherwise.
bool a = Geometry::isRightTriangle(3, 4, 5); // true
There was an error while loading. Please reload this page.