This commit is contained in:
T.Alderighi 2018-01-11 13:52:40 +01:00
commit b3ce4232ab
1 changed files with 16 additions and 0 deletions

View File

@ -272,6 +272,22 @@ public:
max = c + PointType(radius, radius);
min = c - PointType(radius, radius);
}
inline unsigned char MaxDim() const {
int i=1;
PointType diag = max-min;
if (diag[0] > diag[1])
i=0;
return i;
}
inline unsigned char MinDim() const {
int i=1;
PointType diag = max-min;
if (diag[0] < diag[1])
i=0;
return i;
}
}; // end class definition