Skip to content

Commit

Permalink
rasterdiff: rasters_are_equal method
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Mar 28, 2023
1 parent e8d0961 commit 29054a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/include/gdx/rasterdiff.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ struct RasterDiff
uint32_t dataDifference = 0;
uint32_t equal = 0;

uint32_t differentCells() const noexcept
bool rasters_are_equal() const noexcept
{
return different_cells() == 0;
}

uint32_t different_cells() const noexcept
{
return zeroToNonZero +
nonZeroToZero +
Expand Down

0 comments on commit 29054a7

Please sign in to comment.