Added initial implementation of Template.
This commit is contained in:
@@ -53,12 +53,12 @@ namespace libglabels
|
||||
}
|
||||
|
||||
|
||||
bool FrameRect::isSimilar( Frame *b ) const
|
||||
bool FrameRect::isSimilarTo( Frame *other ) const
|
||||
{
|
||||
if ( FrameRect *bRect = dynamic_cast<FrameRect*>(b) )
|
||||
if ( FrameRect *otherRect = dynamic_cast<FrameRect*>(other) )
|
||||
{
|
||||
if ( (fabs( mW - bRect->mW ) <= Constants::EPSILON) &&
|
||||
(fabs( mH - bRect->mH ) <= Constants::EPSILON) )
|
||||
if ( (fabs( mW - otherRect->mW ) <= Constants::EPSILON) &&
|
||||
(fabs( mH - otherRect->mH ) <= Constants::EPSILON) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -66,5 +66,6 @@ namespace libglabels
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user