grid_generator 0.1.8 → 0.1.9

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
  SHA256:
3
- metadata.gz: 8c0a572f9ff30e9a8a09dd3a25ff1da4d7407b62c96946c17173d6dc479dd11d
4
- data.tar.gz: 82f11b79300e9aa6c0cdcf7752ef7ff86f1f3205ee049e5ae4bdd40617da4e6d
3
+ metadata.gz: 0ac7f82dc97761cf5658c251205fe6252b91ed958a18e1f5de5b1aac04c28dd0
4
+ data.tar.gz: 5a24c6751168911673208572ad4907d3338572b11ffc6b0d7ca07f82314b11ad
5
5
  SHA512:
6
- metadata.gz: b0231572fba1c2911f88887eb6179c68a7c5d5df9b6d3d137b0f96cde999e219ef2925ec20506e28a9796c52f426ecbbf156239be4039b83ffb2ca2eb872e318
7
- data.tar.gz: 88784bbaef6dd1a4266a9dc2a7e47a1cc872dbd239b28df10d4c2ba4bf56ca8081a78855fa2d519b4597f372edc1e32b3d4251eb9bbddc6fc929e433cbe29196
6
+ metadata.gz: 1953a170d5319d2824e8d459cdfcad0b99b97725d2f255136854549954eed2740af089a0586ec91048d66d93029cc18e03ea5e3ea9a496ca1e3e6b198b15ea29
7
+ data.tar.gz: 5b2a940072221e6fc316a5ed123374ac0599c3bc078be30d0e3ddb86bec0cd3d1712da29a543ad5ceb4cc09a039b02725ca7e9aebc68f9f6e000151fd0dc5dec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grid_generator (0.1.8)
4
+ grid_generator (0.1.9)
5
5
  matrix (~> 0.4.2)
6
6
 
7
7
  GEM
@@ -27,7 +27,7 @@ module GridGenerator
27
27
  end
28
28
 
29
29
  def y_for_row(r)
30
- Math.sqrt(3)/2 * r * units
30
+ Math.sqrt(3)/2 * (r + 1) * units
31
31
  end
32
32
 
33
33
  def vertical_lines
@@ -65,7 +65,7 @@ module GridGenerator
65
65
 
66
66
  def top
67
67
  Matrix.column_vector([
68
- x + units / 2,
68
+ x + size * units / 2,
69
69
  y
70
70
  ])
71
71
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GridGenerator
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Humphreys