Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Perhaps this indentation will work.

  • Loading branch information...
commit 11ff5b6652a51ffb429f393b17817f5a2ef69d7f 1 parent f99abb9
Brendan Ribera authored
Showing with 21 additions and 21 deletions.
  1. +21 −21 README.rdoc
42 README.rdoc
View
@@ -12,37 +12,37 @@ in turn be used for proximity-based clustering of the input points.
== Usage:
-require 'lib/ruby_vor'
-require 'pp'
+ 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)
-]
+ 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)
+ # Compute the diagram & triangulation
+ comp = RubyVor::VDDT::Computation.from_points(points)
-puts "The nearest-neighbor graph:"
-pp comp.nn_graph
+ puts "The nearest-neighbor graph:"
+ pp comp.nn_graph
-puts "\nThe minimum-spanning tree:"
-pp comp.minimum_spanning_tree
+ puts "\nThe minimum-spanning tree:"
+ pp comp.minimum_spanning_tree
#
# Visualize these things as SVGs
#
-# Just the triangulation
-RubyVor::Visualizer.make_svg(comp, :name => 'tri.svg')
+ # Just the triangulation
+ RubyVor::Visualizer.make_svg(comp, :name => 'tri.svg')
-# Just the MST
-RubyVor::Visualizer.make_svg(comp, :name => 'mst.svg', :triangulation => false, :mst => true)
+ # Just the MST
+ RubyVor::Visualizer.make_svg(comp, :name => 'mst.svg', :triangulation => false, :mst => true)
-# Voronoi diagram and the triangulation
-RubyVor::Visualizer.make_svg(comp, :name => 'dia.svg', :voronoi_diagram => true)
+ # Voronoi diagram and the triangulation
+ RubyVor::Visualizer.make_svg(comp, :name => 'dia.svg', :voronoi_diagram => true)
== LICENSE:
@@ -54,7 +54,7 @@ used (and released under the MIT-LICENSE) with permission.
(The MIT License)
-Copyright (c) 2008 Brendan Ribera <brendan.ribera+rubyvor@gmail.com>
+Copyright (c) 2008-2011 Brendan Ribera <brendan.ribera+rubyvor@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
Please sign in to comment.
Something went wrong with that request. Please try again.