Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Fixed minor bug in kdtree example
Browse files Browse the repository at this point in the history
  • Loading branch information
Monty Williams committed Sep 20, 2011
1 parent 5c6d8c8 commit fc89b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/persistence/kdtree/lib/treekd.rb
Expand Up @@ -394,7 +394,7 @@ def distance_sq(other)
when 3
dx = @x - other.x
dy = @y - other.y
dy = @z - other.z
dz = @z - other.z
(dx * dx) + (dy * dy) + (dz * dz)
else
sum = 0
Expand Down

0 comments on commit fc89b13

Please sign in to comment.