#include <Triangle.hpp>
Public Methods | |
JTriangle () | |
BOOL | setLengths (double l1, double l2, double l3) |
Private Attributes | |
double | length1 |
double | length2 |
double | length3 |
|
Definition at line 7 of file Triangle.hpp. |
|
Definition at line 6 of file Triangle.cpp. 00007 { 00008 // check for JTriangle validity 00009 if (l1 + l3 <= l2) return FALSE; 00010 if (l2 + l1 <= l3) return FALSE; 00011 if (l3 + l2 <= l1) return FALSE; 00012 00013 length1 = l1; 00014 length2 = l2; 00015 length3 = l3; 00016 00017 return TRUE; 00018 } |
|
Definition at line 11 of file Triangle.hpp. |
|
Definition at line 12 of file Triangle.hpp. |
|
Definition at line 13 of file Triangle.hpp. |