added a MaxCoeffId utility function that was missing...

This commit is contained in:
Paolo Cignoni 2014-08-09 00:01:41 +00:00
parent d89f934e3e
commit 35d099384f
1 changed files with 7 additions and 0 deletions

View File

@ -391,6 +391,13 @@ public:
//@}
//@{
size_t MaxCoeffId() const
{
if (_v[0]>_v[1])
return _v[0]>_v[2] ? 0 : 2;
else
return _v[1]>_v[2] ? 1 : 2;
}
/** @name Comparison Operators.
Note that the reverse z prioritized ordering, useful in many situations.
**/