mlr 0.1.0 → 0.1.1
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/Gemfile.lock +1 -1
- data/README.md +38 -0
- data/lib/mlr/version.rb +1 -1
- data/mlr.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bbe9d29418a1d6ddc9aa136f365816831cd1de497dd83a94d8d4063140485a7
|
4
|
+
data.tar.gz: 8ca6ea82d8edd986603904797062bf42b42e9d22b81a0a71e687e7ed6f5ae5e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0f7a8fe73cd5910a363ed58ac52d634b9d9393b3713bbce2b5ae0fac60ebecf14e2250ec8d4a58d4429c291e9f22b29d3a2940cfa0fb0df7efa973596435ed
|
7
|
+
data.tar.gz: fdd563f681ab656bd34fcee7704a8294f7f035153a94b625733cefbf2dfbd7bacbf9b06ec6e5ae1a2fe5babe636f1297493aa75dfce5fa7e1ba9bfce12eedf90
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,3 +24,41 @@ Also you need python libraries
|
|
24
24
|
$ pip install numpy
|
25
25
|
$ pip install scipy
|
26
26
|
$ pip install shapely
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
# detect point from Mlr::AnchorPoint struct
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
|
34
|
+
# Mlr::AnchorPoint2D.new(X, Y, D)
|
35
|
+
# Mlr::AnchorPoint3D.new(X, Y, Z, D)
|
36
|
+
|
37
|
+
Mlr.from_points([
|
38
|
+
Mlr::AnchorPoint2D.new(0, 100, 50),
|
39
|
+
Mlr::AnchorPoint2D.new(100, 100, 50),
|
40
|
+
Mlr::AnchorPoint2D.new(100, 0, 50)
|
41
|
+
])
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
# detect point from Array of Arrays
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
|
49
|
+
# 3xN (2d result)
|
50
|
+
|
51
|
+
Mlr.from_points([
|
52
|
+
[0, 100, 50],
|
53
|
+
[100, 100, 50],
|
54
|
+
[100, 0, 50]
|
55
|
+
])
|
56
|
+
|
57
|
+
# or 4xN (3d result)
|
58
|
+
Mlr.from_points([
|
59
|
+
[0, 100, 0, 50],
|
60
|
+
[100, 100, 100, 50],
|
61
|
+
[100, 0, 200, 50]
|
62
|
+
])
|
63
|
+
|
64
|
+
```
|
data/lib/mlr/version.rb
CHANGED
data/mlr.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["skcc321@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{multilateration}
|
13
|
-
spec.description = %q{ruby wrapper
|
13
|
+
spec.description = %q{ruby wrapper for https://github.com/kamalshadi/Localization}
|
14
14
|
spec.homepage = "https://github.com/skcc321/mlr"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mlr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rafael
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '5.0'
|
83
|
-
description: ruby wrapper
|
83
|
+
description: ruby wrapper for https://github.com/kamalshadi/Localization
|
84
84
|
email:
|
85
85
|
- skcc321@gmail.com
|
86
86
|
executables: []
|