Skip to content

Commit

Permalink
Small fix for speed
Browse files Browse the repository at this point in the history
Signed-off-by: jpolchlo <jpolchlopek@azavea.com>
  • Loading branch information
jpolchlo authored and echeipesh committed May 11, 2017
1 parent e25ba98 commit c80010b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ object EuclideanDistanceTile {
val currentValue = tile.getDouble(col, row)
val newValue = sqrt((x - base.x) * (x - base.x) + (y - base.y) * (y - base.y))

if (currentValue.isNaN || currentValue > newValue)
if (java.lang.Double.isNaN(currentValue) || currentValue > newValue)
tile.setDouble(col, row, newValue)
}

Expand Down

0 comments on commit c80010b

Please sign in to comment.