grid_generator 0.2.11 → 0.2.12

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: 4b4decfd16c0f0358a935123fed5fb0a190d2379d14a37b83e2f0c958d41a624
4
- data.tar.gz: 50883416a3a299e9ea384b14777eef77d1767ffb22ff11b7449fb1d79f6c8bae
3
+ metadata.gz: d2e4ae2eb50929918c9de39208ddf4eaccaafdc56c53dc13774d398aa70f52e3
4
+ data.tar.gz: 5a7c155861ff0725f985660ef3727d18e834a42f770c8e030f73c8c145e1e88c
5
5
  SHA512:
6
- metadata.gz: 4a35b02c742ec97e40f5b674232ab528b00fe7ee401ae47340b1bc0539e29cd3c75e2bfa31349dc9a66a3b6e51da3d59209f3aebbf1d06423b168aea0343e083
7
- data.tar.gz: 12e781e8a1d8c0b125b4395a0bdf20b29636a632f2a4b288226f718a6ddac223756db2a06a078797f2dbaf0ec786673c126da1e4fdea780cb29acc6bd3f28f13
6
+ metadata.gz: 4adbf1a09e9839148113816c35920bad39d61128bb20f9dac8a30b0af6e8953cab5103cd7e682ea050a6a6de61ae9fecfb501bc1172b662b8642a749e8758d6b
7
+ data.tar.gz: a096f60c701cb163b94c79034961cefc8b3f6f65554dbd7f530fe4723878eae1377a1b32891c51ee9fd719697a391106b5916a2b7904df6ad101ac4953b0e4b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grid_generator (0.2.11)
4
+ grid_generator (0.2.12)
5
5
  matrix (~> 0.4.2)
6
6
 
7
7
  GEM
@@ -126,11 +126,26 @@ module GridGenerator
126
126
 
127
127
  # for svg
128
128
  def right_face_lines
129
- angle = Math::PI * 0.4
130
- rotator = GridGenerator::Rotator.new(angle: angle, rotation_point: rotation_point)
131
- top_right_face_lines_raw.map do |l|
132
- rotator.rotate(l) + offset
133
- end
129
+ rotator = GridGenerator::Rotator.new(angle: Math::PI * 0.4, rotation_point: rotation_point)
130
+ top_right_face_lines_raw.map { |l| rotator.rotate(l) + offset }
131
+ end
132
+
133
+ # for svg
134
+ def down_face_lines
135
+ rotator = GridGenerator::Rotator.new(angle: Math::PI * 0.8, rotation_point: rotation_point)
136
+ top_right_face_lines_raw.map { |l| rotator.rotate(l) + offset }
137
+ end
138
+
139
+ # for svg
140
+ def left_face_lines
141
+ rotator = GridGenerator::Rotator.new(angle: Math::PI * 1.2, rotation_point: rotation_point)
142
+ top_right_face_lines_raw.map { |l| rotator.rotate(l) + offset }
143
+ end
144
+
145
+ # for svg
146
+ def top_left_face_lines
147
+ rotator = GridGenerator::Rotator.new(angle: Math::PI * 1.6, rotation_point: rotation_point)
148
+ top_right_face_lines_raw.map { |l| rotator.rotate(l) + offset }
134
149
  end
135
150
 
136
151
  # for svg
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GridGenerator
4
- VERSION = "0.2.11"
4
+ VERSION = "0.2.12"
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.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Humphreys