Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 2

  • Loading branch information...
commit 93d19ebf550923f2d2574c6054e6e52c3db60621 1 parent 698872d
@bfoz authored
Showing with 10 additions and 3 deletions.
  1. +9 −2 README.markdown
  2. +1 −1  geometry.gemspec
View
11 README.markdown
@@ -20,6 +20,7 @@ Primitives
- Point
- Line
+- Circle
Examples
--------
@@ -27,7 +28,7 @@ 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
2  geometry.gemspec
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.