rdp 0.0.3 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/rdp/polyline.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5300d2c476518807f870391bdfc22a13de2efb52
|
4
|
+
data.tar.gz: 78b9afef7a9c8b104c77c6e81d83e9dbd1e901aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88e26c998dafc78f724f43d003a3192a7f37a3329f3aaa790e9a79e84e9b0513f443a2ab6c71b06a71f5fa4c0f5c9d47cc411f7e0f0614e4c47e72882a2f1d4e
|
7
|
+
data.tar.gz: 7d3d9056b1dbaf65d4801861e0bbaecd80240e7239402d6a08f4e79aa157b801fdf62940f5afa27117748fde834174a1f3615f4ed6ef392cbae932ce67a464f9
|
data/lib/rdp/polyline.rb
CHANGED
@@ -12,7 +12,7 @@ class RDP::Polyline < Array
|
|
12
12
|
#Automatically compute a tolerance level for the vertix decimation algorithm
|
13
13
|
def normalized_epsilon
|
14
14
|
ys = self.map{|point| point.y}
|
15
|
-
(ys.max - ys.min)
|
15
|
+
(ys.max - ys.min)*(0.02)
|
16
16
|
end
|
17
17
|
|
18
18
|
#vertix decimation using Ramer Douglas Peucker algorithm
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aurélien Hervé
|
@@ -11,7 +11,7 @@ cert_chain: []
|
|
11
11
|
date: 2013-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ramer Douglas Peucker algorithm implementation to simplify a 2d curve
|
14
|
-
email: aurelien
|
14
|
+
email: mail@aurelien-herve.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
@@ -42,5 +42,5 @@ rubyforge_project:
|
|
42
42
|
rubygems_version: 2.0.0.rc.2
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
|
-
summary:
|
45
|
+
summary: Changed default value
|
46
46
|
test_files: []
|