Skip to content

Instantly share code, notes, and snippets.

@charliedavi
Created April 6, 2012 15:34
Show Gist options
  • Save charliedavi/2320843 to your computer and use it in GitHub Desktop.
Save charliedavi/2320843 to your computer and use it in GitHub Desktop.
require 'java'
require 'libssrckdtree-j-1.0.2.jar'
def rand_coord
rand(0) * 10 - 5
end
@kdsize = 1000
@points = (0...1000).map { |i| [rand_coord, rand_coord, i ] }
public KDTree()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment