Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Beta/Geometry/Linear/Triangle.cpp

Go to the documentation of this file.
00001 #ifndef __J2K__JTriangle_CPP__
00002 #define __J2K__JTriangle_CPP__
00003 
00004 #include <j2k/Xiarcel/Geometry/JTriangle.hpp>
00005 
00006 BOOL JTriangle::setLengths(double l1, double l2, double l3)
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 }
00019 
00020 #endif

Generated on Sun Oct 14 18:46:10 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001