elektronaut-vector2d 0.5.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +10 -2
- data/VERSION +1 -1
- data/vector2d.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
= Vector2d
|
2
2
|
|
3
3
|
Vector2d allows for easy handling of two-dimensionals coordinates and vectors.
|
4
4
|
It's very flexible, most methods accepts arguments as strings, arrays, hashes
|
@@ -21,7 +21,7 @@ Install from GitHub:
|
|
21
21
|
|
22
22
|
# These are equal
|
23
23
|
v = Vector2d.new(50, 70)
|
24
|
-
v = Vector2d.new('50x70')
|
24
|
+
v = Vector2d.new('50x70')
|
25
25
|
|
26
26
|
v.aspect_ratio # => 0.714285714285714
|
27
27
|
v.length # => 86.0232526704263
|
@@ -32,6 +32,14 @@ Install from GitHub:
|
|
32
32
|
|
33
33
|
v.constrain_both(64, 64) # => #<Vector2d:0x47e28 @y=64.0, @x=45.7142857142857>
|
34
34
|
|
35
|
+
== API Documentation
|
36
|
+
|
37
|
+
Is available at http://vector2d.rubyforge.org/
|
38
|
+
|
39
|
+
== Source code
|
40
|
+
|
41
|
+
Is available at http://github.com/elektronaut/vector2d
|
42
|
+
|
35
43
|
== Licence
|
36
44
|
|
37
45
|
(The MIT License)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
data/vector2d.gemspec
CHANGED