Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created April 22, 2009 20:19
Show Gist options
  • Save jpemberthy/100049 to your computer and use it in GitHub Desktop.
Save jpemberthy/100049 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'geo_ruby'
require 'lib/ruby_vor'
require 'pp'
points = [
RubyVor::Point.new(120, 290),
RubyVor::Point.new(110, 120),
RubyVor::Point.new(160, 90.2),
RubyVor::Point.new(3.14159265, 3.14159265)
]
# Compute the diagram & triangulation
comp = RubyVor::VDDT::Computation.from_points(points)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment