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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/grid_generator/megaminx/face_projection.rb +20 -5
- data/lib/grid_generator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2e4ae2eb50929918c9de39208ddf4eaccaafdc56c53dc13774d398aa70f52e3
|
4
|
+
data.tar.gz: 5a7c155861ff0725f985660ef3727d18e834a42f770c8e030f73c8c145e1e88c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4adbf1a09e9839148113816c35920bad39d61128bb20f9dac8a30b0af6e8953cab5103cd7e682ea050a6a6de61ae9fecfb501bc1172b662b8642a749e8758d6b
|
7
|
+
data.tar.gz: a096f60c701cb163b94c79034961cefc8b3f6f65554dbd7f530fe4723878eae1377a1b32891c51ee9fd719697a391106b5916a2b7904df6ad101ac4953b0e4b1
|
data/Gemfile.lock
CHANGED
@@ -126,11 +126,26 @@ module GridGenerator
|
|
126
126
|
|
127
127
|
# for svg
|
128
128
|
def right_face_lines
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|