Permalink
Browse files

Version 2

  • Loading branch information...
1 parent 698872d commit 93d19ebf550923f2d2574c6054e6e52c3db60621 @bfoz committed Apr 22, 2012
Showing with 10 additions and 3 deletions.
  1. +9 −2 README.markdown
  2. +1 −1 geometry.gemspec
View
@@ -20,14 +20,15 @@ Primitives
- Point
- Line
+- Circle
Examples
--------
### Point
```ruby
point = Geometry::Point[3,4] # 2D Point at coordinate 3, 4
- point = Geometry.Point(1,2) # Functional constructor
+ point = Geometry.point(1,2) # Functional constructor
# Copy constructors
point2 = Geometry::Point[point]
@@ -57,4 +58,10 @@ Examples
# Special constructors (2D only)
Geometry::Line.horizontal(y=0)
Geometry::Line.vertical(x=0)
-```
+```
+
+### Circle
+```ruby
+ # A circle at Point[1,2] with a radius of 3
+ circle = Geometry::Circle [1,2], 3
+```
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "geometry"
- s.version = '1'
+ s.version = '2'
s.authors = ["Brandon Fosdick"]
s.email = ["bfoz@bfoz.net"]
s.homepage = "http://github.com/bfoz/geometry"

0 comments on commit 93d19eb

Please sign in to comment.