mk_coord 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49d9b793b0ce97d37ecbc6a8e99ed9f70b3a85cd
4
- data.tar.gz: 77cd70b9faa59ac7c69b0cfc9c94671acc4b94c5
3
+ metadata.gz: 11963059ed82d8b6ea9df3a098d1467d10e48033
4
+ data.tar.gz: a67d91d5b9cfdf37a6c2883aca740088d31506f1
5
5
  SHA512:
6
- metadata.gz: 53ce409cbe830acd77dade928a2663f14a1b75c0819946c487693f2cc31f95a1b9a687b0b475d91995a463a291a331ea6d15c5d47d82297ed4297bd37c67fe4b
7
- data.tar.gz: 1c0c2679e84a164a9d29e4191d1f4f82a771e4fc78511e5fe623838d2ed7c5f4ecc82984ca7fe0666b1cd9d154c6815e18d01bac5b23a4feb0ec82df10dfdf51
6
+ metadata.gz: ca8381443b311a34e81895eeee03fa7884f491e258750e70ad4f84cd526d16325b0568841099b4da52b707bd7f6962537578bc38356c478798a99c36a3b77a79
7
+ data.tar.gz: 8d2228ec21fd8269340ecb12e0cdbd4fe6e4442a233498c3b4fe9100361708527cbdb10993c7d2b89afed8028bc2e332d43b9ec60689df4845456fd378d03fc4
@@ -51,11 +51,14 @@ module MkCoord
51
51
 
52
52
  def self.pol2rect(pol, r)
53
53
  lambda, phi = pol
54
- return [
55
- r * Math.cos(lambda) * Math.cos(phi),
56
- r * Math.sin(lambda) * Math.cos(phi),
57
- r * Math.sin(phi)
58
- ]
54
+ mtx = r_y(phi)
55
+ mtx = r_z(-lambda, mtx)
56
+ return rotate(mtx, [r, 0.0, 0.0])
57
+ #return [
58
+ # r * Math.cos(lambda) * Math.cos(phi),
59
+ # r * Math.sin(lambda) * Math.cos(phi),
60
+ # r * Math.sin(phi)
61
+ #]
59
62
  rescue => e
60
63
  raise
61
64
  end
@@ -1,3 +1,3 @@
1
1
  module MkCoord
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mk_coord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - komasaru