symcrys 0.6.1 → 0.7.0

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.
Files changed (50) hide show
  1. package/README.md +2 -2
  2. package/dist/crystalClasses.d.ts +94 -0
  3. package/dist/crystalClasses.d.ts.map +1 -1
  4. package/dist/crystalClasses.js +79 -0
  5. package/dist/crystalClasses.js.map +1 -1
  6. package/dist/index.d.ts +4 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/magnetic.d.ts +2 -0
  11. package/dist/magnetic.d.ts.map +1 -1
  12. package/dist/magnetic.js +2 -0
  13. package/dist/magnetic.js.map +1 -1
  14. package/dist/pointGroups/crystalForms.d.ts +70 -0
  15. package/dist/pointGroups/crystalForms.d.ts.map +1 -0
  16. package/dist/pointGroups/crystalForms.js +69 -0
  17. package/dist/pointGroups/crystalForms.js.map +1 -0
  18. package/dist/pointGroups/crystalFormsData.d.ts +32 -0
  19. package/dist/pointGroups/crystalFormsData.d.ts.map +1 -0
  20. package/dist/pointGroups/crystalFormsData.js +518 -0
  21. package/dist/pointGroups/crystalFormsData.js.map +1 -0
  22. package/dist/pointGroups/elements.d.ts +5 -1
  23. package/dist/pointGroups/elements.d.ts.map +1 -1
  24. package/dist/pointGroups/elements.js +6 -2
  25. package/dist/pointGroups/elements.js.map +1 -1
  26. package/dist/pointGroups/identify.d.ts +75 -0
  27. package/dist/pointGroups/identify.d.ts.map +1 -0
  28. package/dist/pointGroups/identify.js +193 -0
  29. package/dist/pointGroups/identify.js.map +1 -0
  30. package/dist/pointGroups/orbits.d.ts +85 -0
  31. package/dist/pointGroups/orbits.d.ts.map +1 -0
  32. package/dist/pointGroups/orbits.js +134 -0
  33. package/dist/pointGroups/orbits.js.map +1 -0
  34. package/dist/pointGroups/wyckoff.d.ts +40 -1
  35. package/dist/pointGroups/wyckoff.d.ts.map +1 -1
  36. package/dist/pointGroups/wyckoff.js +55 -27
  37. package/dist/pointGroups/wyckoff.js.map +1 -1
  38. package/dist/version.d.ts +1 -1
  39. package/dist/version.js +1 -1
  40. package/package.json +1 -1
  41. package/src/crystalClasses.ts +146 -0
  42. package/src/index.ts +12 -0
  43. package/src/magnetic.ts +17 -0
  44. package/src/pointGroups/crystalForms.ts +143 -0
  45. package/src/pointGroups/crystalFormsData.ts +539 -0
  46. package/src/pointGroups/elements.ts +6 -2
  47. package/src/pointGroups/identify.ts +255 -0
  48. package/src/pointGroups/orbits.ts +228 -0
  49. package/src/pointGroups/wyckoff.ts +59 -26
  50. package/src/version.ts +1 -1
@@ -0,0 +1,539 @@
1
+ /**
2
+ * The crystal forms of the crystal classes as ITA prints them (6th ed., 2016): the 47 forms of
3
+ * Table 3.2.1.3 (pp. 724–726: number, name, number of faces, eigensymmetry) and, per printed setting
4
+ * of Table 3.2.3.2 (pp. 745–769), the face forms of each Wyckoff position, basic form first, then
5
+ * the limiting forms. The same rows are in references/itc/vol-a-table-3.2.1.3-crystal-forms.md and
6
+ * references/itc/vol-a-table-3.2.3.2-face-forms.md, which the reference test re-parses and compares
7
+ * with this file; change both only by transcription from print.
8
+ *
9
+ * Notation as in wyckoffData.ts: a leading `-` is an overbar; components separated by commas;
10
+ * Bravais–Miller indices (four components) for hexagonal axes.
11
+ */
12
+
13
+ /** [number, name as printed, number of faces, eigensymmetry]. */
14
+ export type FormTypeRow = readonly [number, string, number, string];
15
+
16
+ /** The 47 crystal forms of ITA Table 3.2.1.3, in printed order. */
17
+ export const ITA_FORM_TYPES: readonly FormTypeRow[] = [
18
+ [1, 'Pedion or monohedron', 1, '∞m'],
19
+ [2, 'Pinacoid or parallelohedron', 2, '∞/mm'],
20
+ [3, 'Sphenoid, dome, or dihedron', 2, 'mm2'],
21
+ [4, 'Rhombic disphenoid or rhombic tetrahedron', 4, '222'],
22
+ [5, 'Rhombic pyramid', 4, 'mm2'],
23
+ [6, 'Rhombic prism', 4, 'mmm'],
24
+ [7, 'Rhombic dipyramid', 8, 'mmm'],
25
+ [8, 'Tetragonal pyramid', 4, '4mm'],
26
+ [9, 'Tetragonal disphenoid or tetragonal tetrahedron', 4, '-42m'],
27
+ [10, 'Tetragonal prism', 4, '4/mmm'],
28
+ [11, 'Tetragonal trapezohedron', 8, '422'],
29
+ [12, 'Ditetragonal pyramid', 8, '4mm'],
30
+ [13, 'Tetragonal scalenohedron', 8, '-42m'],
31
+ [14, 'Tetragonal dipyramid', 8, '4/mmm'],
32
+ [15, 'Ditetragonal prism', 8, '4/mmm'],
33
+ [16, 'Ditetragonal dipyramid', 16, '4/mmm'],
34
+ [17, 'Trigonal pyramid', 3, '3m'],
35
+ [18, 'Trigonal prism', 3, '-62m'],
36
+ [19, 'Trigonal trapezohedron', 6, '32'],
37
+ [20, 'Ditrigonal pyramid', 6, '3m'],
38
+ [21, 'Rhombohedron', 6, '-3m'],
39
+ [22, 'Ditrigonal prism', 6, '-62m'],
40
+ [23, 'Hexagonal pyramid', 6, '6mm'],
41
+ [24, 'Trigonal dipyramid', 6, '-62m'],
42
+ [25, 'Hexagonal prism', 6, '6/mmm'],
43
+ [26, 'Ditrigonal scalenohedron or hexagonal scalenohedron', 12, '-3m'],
44
+ [27, 'Hexagonal trapezohedron', 12, '622'],
45
+ [28, 'Dihexagonal pyramid', 12, '6mm'],
46
+ [29, 'Ditrigonal dipyramid', 12, '-62m'],
47
+ [30, 'Dihexagonal prism', 12, '6/mmm'],
48
+ [31, 'Hexagonal dipyramid', 12, '6/mmm'],
49
+ [32, 'Dihexagonal dipyramid', 24, '6/mmm'],
50
+ [33, 'Tetrahedron', 4, '-43m'],
51
+ [34, 'Cube or hexahedron', 6, 'm-3m'],
52
+ [35, 'Octahedron', 8, 'm-3m'],
53
+ [36, 'Pentagon-tritetrahedron or tetartoid or tetrahedral pentagon-dodecahedron', 12, '23'],
54
+ [37, 'Pentagon-dodecahedron or dihexahedron or pyritohedron', 12, 'm-3'],
55
+ [38, 'Tetragon-tritetrahedron or deltohedron or deltoid-dodecahedron', 12, '-43m'],
56
+ [39, 'Trigon-tritetrahedron or tristetrahedron', 12, '-43m'],
57
+ [40, 'Rhomb-dodecahedron', 12, 'm-3m'],
58
+ [41, 'Didodecahedron or diploid or dyakisdodecahedron', 24, 'm-3'],
59
+ [42, 'Trigon-trioctahedron or trisoctahedron', 24, 'm-3m'],
60
+ [43, 'Tetragon-trioctahedron or trapezohedron or deltoid-icositetrahedron', 24, 'm-3m'],
61
+ [44, 'Pentagon-trioctahedron or gyroid', 24, '432'],
62
+ [45, 'Hexatetrahedron or hexakistetrahedron', 24, '-43m'],
63
+ [46, 'Tetrahexahedron or tetrakishexahedron', 24, 'm-3m'],
64
+ [47, 'Hexaoctahedron or hexakisoctahedron', 48, 'm-3m'],
65
+ ];
66
+
67
+ /**
68
+ * [Wyckoff letter, basic (false: a limiting form), number in ITA_FORM_TYPES, Miller indices of the
69
+ * first face, condition printed with the form (`|h|<|l|`)].
70
+ */
71
+ export type FormRow = readonly [string, boolean, number, string, string?];
72
+
73
+ export interface FormEntry {
74
+ /** ITC short symbol of the setting as in the headline of the entry. */
75
+ readonly symbol: string;
76
+ /** Monoclinic: the unique axis of the entry. */
77
+ readonly uniqueAxis?: 'b' | 'c';
78
+ /** Printed page. */
79
+ readonly page: number;
80
+ /** In printed order: general position first, each position's basic form before its limiting forms. */
81
+ readonly rows: readonly FormRow[];
82
+ }
83
+
84
+ export const ITA_FORMS: readonly FormEntry[] = [
85
+ {
86
+ symbol: '1',
87
+ page: 745,
88
+ rows: [['a', true, 1, 'h,k,l']],
89
+ },
90
+ {
91
+ symbol: '-1',
92
+ page: 745,
93
+ rows: [['a', true, 2, 'h,k,l']],
94
+ },
95
+ {
96
+ symbol: '2',
97
+ uniqueAxis: 'b',
98
+ page: 745,
99
+ rows: [
100
+ ['b', true, 3, 'h,k,l'],
101
+ ['b', false, 2, 'h,0,l'],
102
+ ['a', true, 1, '0,1,0'],
103
+ ],
104
+ },
105
+ {
106
+ symbol: '2',
107
+ uniqueAxis: 'c',
108
+ page: 745,
109
+ rows: [
110
+ ['b', true, 3, 'h,k,l'],
111
+ ['b', false, 2, 'h,k,0'],
112
+ ['a', true, 1, '0,0,1'],
113
+ ],
114
+ },
115
+ {
116
+ symbol: 'm',
117
+ uniqueAxis: 'b',
118
+ page: 746,
119
+ rows: [
120
+ ['b', true, 3, 'h,k,l'],
121
+ ['b', false, 2, '0,1,0'],
122
+ ['a', true, 1, 'h,0,l'],
123
+ ],
124
+ },
125
+ {
126
+ symbol: 'm',
127
+ uniqueAxis: 'c',
128
+ page: 746,
129
+ rows: [
130
+ ['b', true, 3, 'h,k,l'],
131
+ ['b', false, 2, '0,0,1'],
132
+ ['a', true, 1, 'h,k,0'],
133
+ ],
134
+ },
135
+ {
136
+ symbol: '2/m',
137
+ uniqueAxis: 'b',
138
+ page: 746,
139
+ rows: [
140
+ ['c', true, 6, 'h,k,l'],
141
+ ['b', true, 2, 'h,0,l'],
142
+ ['a', true, 2, '0,1,0'],
143
+ ],
144
+ },
145
+ {
146
+ symbol: '2/m',
147
+ uniqueAxis: 'c',
148
+ page: 747,
149
+ rows: [
150
+ ['c', true, 6, 'h,k,l'],
151
+ ['b', true, 2, 'h,k,0'],
152
+ ['a', true, 2, '0,0,1'],
153
+ ],
154
+ },
155
+ {
156
+ symbol: '222',
157
+ page: 747,
158
+ rows: [
159
+ ['d', true, 4, 'h,k,l'],
160
+ ['d', false, 6, 'h,k,0'],
161
+ ['d', false, 6, 'h,0,l'],
162
+ ['d', false, 6, '0,k,l'],
163
+ ['c', true, 2, '0,0,1'],
164
+ ['b', true, 2, '0,1,0'],
165
+ ['a', true, 2, '1,0,0'],
166
+ ],
167
+ },
168
+ {
169
+ symbol: 'mm2',
170
+ page: 748,
171
+ rows: [
172
+ ['d', true, 5, 'h,k,l'],
173
+ ['d', false, 6, 'h,k,0'],
174
+ ['c', true, 3, '0,k,l'],
175
+ ['c', false, 2, '0,1,0'],
176
+ ['b', true, 3, 'h,0,l'],
177
+ ['b', false, 2, '1,0,0'],
178
+ ['a', true, 1, '0,0,1'],
179
+ ],
180
+ },
181
+ {
182
+ symbol: 'mmm',
183
+ page: 748,
184
+ rows: [
185
+ ['g', true, 7, 'h,k,l'],
186
+ ['f', true, 6, 'h,k,0'],
187
+ ['e', true, 6, 'h,0,l'],
188
+ ['d', true, 6, '0,k,l'],
189
+ ['c', true, 2, '0,0,1'],
190
+ ['b', true, 2, '0,1,0'],
191
+ ['a', true, 2, '1,0,0'],
192
+ ],
193
+ },
194
+ {
195
+ symbol: '4',
196
+ page: 749,
197
+ rows: [
198
+ ['b', true, 8, 'h,k,l'],
199
+ ['b', false, 10, 'h,k,0'],
200
+ ['a', true, 1, '0,0,1'],
201
+ ],
202
+ },
203
+ {
204
+ symbol: '-4',
205
+ page: 749,
206
+ rows: [
207
+ ['b', true, 9, 'h,k,l'],
208
+ ['b', false, 10, 'h,k,0'],
209
+ ['a', true, 2, '0,0,1'],
210
+ ],
211
+ },
212
+ {
213
+ symbol: '4/m',
214
+ page: 749,
215
+ rows: [
216
+ ['c', true, 14, 'h,k,l'],
217
+ ['b', true, 10, 'h,k,0'],
218
+ ['a', true, 2, '0,0,1'],
219
+ ],
220
+ },
221
+ {
222
+ symbol: '422',
223
+ page: 750,
224
+ rows: [
225
+ ['d', true, 11, 'h,k,l'],
226
+ ['d', false, 15, 'h,k,0'],
227
+ ['d', false, 14, 'h,0,l'],
228
+ ['d', false, 14, 'h,h,l'],
229
+ ['c', true, 10, '1,0,0'],
230
+ ['b', true, 10, '1,1,0'],
231
+ ['a', true, 2, '0,0,1'],
232
+ ],
233
+ },
234
+ {
235
+ symbol: '4mm',
236
+ page: 750,
237
+ rows: [
238
+ ['d', true, 12, 'h,k,l'],
239
+ ['d', false, 15, 'h,k,0'],
240
+ ['c', true, 8, 'h,0,l'],
241
+ ['c', false, 10, '1,0,0'],
242
+ ['b', true, 8, 'h,h,l'],
243
+ ['b', false, 10, '1,1,0'],
244
+ ['a', true, 1, '0,0,1'],
245
+ ],
246
+ },
247
+ {
248
+ symbol: '-42m',
249
+ page: 751,
250
+ rows: [
251
+ ['d', true, 13, 'h,k,l'],
252
+ ['d', false, 15, 'h,k,0'],
253
+ ['d', false, 14, 'h,0,l'],
254
+ ['c', true, 9, 'h,h,l'],
255
+ ['c', false, 10, '1,1,0'],
256
+ ['b', true, 10, '1,0,0'],
257
+ ['a', true, 2, '0,0,1'],
258
+ ],
259
+ },
260
+ {
261
+ symbol: '-4m2',
262
+ page: 751,
263
+ rows: [
264
+ ['d', true, 13, 'h,k,l'],
265
+ ['d', false, 15, 'h,k,0'],
266
+ ['d', false, 14, 'h,h,l'],
267
+ ['c', true, 9, 'h,0,l'],
268
+ ['c', false, 10, '1,0,0'],
269
+ ['b', true, 10, '1,1,0'],
270
+ ['a', true, 2, '0,0,1'],
271
+ ],
272
+ },
273
+ {
274
+ symbol: '4/mmm',
275
+ page: 752,
276
+ rows: [
277
+ ['g', true, 16, 'h,k,l'],
278
+ ['f', true, 14, 'h,0,l'],
279
+ ['e', true, 14, 'h,h,l'],
280
+ ['d', true, 15, 'h,k,0'],
281
+ ['c', true, 10, '1,0,0'],
282
+ ['b', true, 10, '1,1,0'],
283
+ ['a', true, 2, '0,0,1'],
284
+ ],
285
+ },
286
+ {
287
+ symbol: '3',
288
+ page: 752,
289
+ rows: [
290
+ ['b', true, 17, 'h,k,i,l'],
291
+ ['b', false, 18, 'h,k,i,0'],
292
+ ['a', true, 1, '0,0,0,1'],
293
+ ],
294
+ },
295
+ {
296
+ symbol: '-3',
297
+ page: 753,
298
+ rows: [
299
+ ['b', true, 21, 'h,k,i,l'],
300
+ ['b', false, 25, 'h,k,i,0'],
301
+ ['a', true, 2, '0,0,0,1'],
302
+ ],
303
+ },
304
+ {
305
+ symbol: '312',
306
+ page: 754,
307
+ rows: [
308
+ ['c', true, 19, 'h,k,i,l'],
309
+ ['c', false, 22, 'h,k,i,0'],
310
+ ['c', false, 24, 'h,0,-h,l'],
311
+ ['c', false, 21, 'h,h,-2h,l'],
312
+ ['c', false, 25, '1,1,-2,0'],
313
+ ['b', true, 18, '1,0,-1,0'],
314
+ ['a', true, 2, '0,0,0,1'],
315
+ ],
316
+ },
317
+ {
318
+ symbol: '321',
319
+ page: 754,
320
+ rows: [
321
+ ['c', true, 19, 'h,k,i,l'],
322
+ ['c', false, 22, 'h,k,i,0'],
323
+ ['c', false, 24, 'h,h,-2h,l'],
324
+ ['c', false, 21, 'h,0,-h,l'],
325
+ ['c', false, 25, '1,0,-1,0'],
326
+ ['b', true, 18, '1,1,-2,0'],
327
+ ['a', true, 2, '0,0,0,1'],
328
+ ],
329
+ },
330
+ {
331
+ symbol: '3m1',
332
+ page: 755,
333
+ rows: [
334
+ ['c', true, 20, 'h,k,i,l'],
335
+ ['c', false, 22, 'h,k,i,0'],
336
+ ['c', false, 23, 'h,h,-2h,l'],
337
+ ['c', false, 25, '1,1,-2,0'],
338
+ ['b', true, 17, 'h,0,-h,l'],
339
+ ['b', false, 18, '1,0,-1,0'],
340
+ ['a', true, 1, '0,0,0,1'],
341
+ ],
342
+ },
343
+ {
344
+ symbol: '31m',
345
+ page: 756,
346
+ rows: [
347
+ ['c', true, 20, 'h,k,i,l'],
348
+ ['c', false, 22, 'h,k,i,0'],
349
+ ['c', false, 23, 'h,0,-h,l'],
350
+ ['c', false, 25, '1,0,-1,0'],
351
+ ['b', true, 17, 'h,h,-2h,l'],
352
+ ['b', false, 18, '1,1,-2,0'],
353
+ ['a', true, 1, '0,0,0,1'],
354
+ ],
355
+ },
356
+ {
357
+ symbol: '-31m',
358
+ page: 757,
359
+ rows: [
360
+ ['d', true, 26, 'h,k,i,l'],
361
+ ['d', false, 30, 'h,k,i,0'],
362
+ ['d', false, 31, 'h,0,-h,l'],
363
+ ['c', true, 21, 'h,h,-2h,l'],
364
+ ['c', false, 25, '1,1,-2,0'],
365
+ ['b', true, 25, '1,0,-1,0'],
366
+ ['a', true, 2, '0,0,0,1'],
367
+ ],
368
+ },
369
+ {
370
+ symbol: '-3m1',
371
+ page: 758,
372
+ rows: [
373
+ ['d', true, 26, 'h,k,i,l'],
374
+ ['d', false, 30, 'h,k,i,0'],
375
+ ['d', false, 31, 'h,h,-2h,l'],
376
+ ['c', true, 21, 'h,0,-h,l'],
377
+ ['c', false, 25, '1,0,-1,0'],
378
+ ['b', true, 25, '1,1,-2,0'],
379
+ ['a', true, 2, '0,0,0,1'],
380
+ ],
381
+ },
382
+ {
383
+ symbol: '6',
384
+ page: 760,
385
+ rows: [
386
+ ['b', true, 23, 'h,k,i,l'],
387
+ ['b', false, 25, 'h,k,i,0'],
388
+ ['a', true, 1, '0,0,0,1'],
389
+ ],
390
+ },
391
+ {
392
+ symbol: '-6',
393
+ page: 760,
394
+ rows: [
395
+ ['c', true, 24, 'h,k,i,l'],
396
+ ['b', true, 18, 'h,k,i,0'],
397
+ ['a', true, 2, '0,0,0,1'],
398
+ ],
399
+ },
400
+ {
401
+ symbol: '6/m',
402
+ page: 760,
403
+ rows: [
404
+ ['c', true, 31, 'h,k,i,l'],
405
+ ['b', true, 25, 'h,k,i,0'],
406
+ ['a', true, 2, '0,0,0,1'],
407
+ ],
408
+ },
409
+ {
410
+ symbol: '622',
411
+ page: 761,
412
+ rows: [
413
+ ['d', true, 27, 'h,k,i,l'],
414
+ ['d', false, 30, 'h,k,i,0'],
415
+ ['d', false, 31, 'h,0,-h,l'],
416
+ ['d', false, 31, 'h,h,-2h,l'],
417
+ ['c', true, 25, '1,0,-1,0'],
418
+ ['b', true, 25, '1,1,-2,0'],
419
+ ['a', true, 2, '0,0,0,1'],
420
+ ],
421
+ },
422
+ {
423
+ symbol: '6mm',
424
+ page: 762,
425
+ rows: [
426
+ ['d', true, 28, 'h,k,i,l'],
427
+ ['d', false, 30, 'h,k,i,0'],
428
+ ['c', true, 23, 'h,0,-h,l'],
429
+ ['c', false, 25, '1,0,-1,0'],
430
+ ['b', true, 23, 'h,h,-2h,l'],
431
+ ['b', false, 25, '1,1,-2,0'],
432
+ ['a', true, 1, '0,0,0,1'],
433
+ ],
434
+ },
435
+ {
436
+ symbol: '-6m2',
437
+ page: 762,
438
+ rows: [
439
+ ['e', true, 29, 'h,k,i,l'],
440
+ ['e', false, 31, 'h,h,-2h,l'],
441
+ ['d', true, 22, 'h,k,i,0'],
442
+ ['d', false, 25, '1,1,-2,0'],
443
+ ['c', true, 24, 'h,0,-h,l'],
444
+ ['b', true, 18, '1,0,-1,0'],
445
+ ['a', true, 2, '0,0,0,1'],
446
+ ],
447
+ },
448
+ {
449
+ symbol: '-62m',
450
+ page: 763,
451
+ rows: [
452
+ ['e', true, 29, 'h,k,i,l'],
453
+ ['e', false, 31, 'h,0,-h,l'],
454
+ ['d', true, 22, 'h,k,i,0'],
455
+ ['d', false, 25, '1,0,-1,0'],
456
+ ['c', true, 24, 'h,h,-2h,l'],
457
+ ['b', true, 18, '1,1,-2,0'],
458
+ ['a', true, 2, '0,0,0,1'],
459
+ ],
460
+ },
461
+ {
462
+ symbol: '6/mmm',
463
+ page: 764,
464
+ rows: [
465
+ ['g', true, 32, 'h,k,i,l'],
466
+ ['f', true, 30, 'h,k,i,0'],
467
+ ['e', true, 31, 'h,0,-h,l'],
468
+ ['d', true, 31, 'h,h,-2h,l'],
469
+ ['c', true, 25, '1,0,-1,0'],
470
+ ['b', true, 25, '1,1,-2,0'],
471
+ ['a', true, 2, '0,0,0,1'],
472
+ ],
473
+ },
474
+ {
475
+ symbol: '23',
476
+ page: 765,
477
+ rows: [
478
+ ['c', true, 36, 'h,k,l'],
479
+ ['c', false, 39, 'h,h,l', '|h|<|l|'],
480
+ ['c', false, 38, 'h,h,l', '|h|>|l|'],
481
+ ['c', false, 37, '0,k,l'],
482
+ ['c', false, 40, '0,1,1'],
483
+ ['b', true, 34, '1,0,0'],
484
+ ['a', true, 33, '1,1,1'],
485
+ ],
486
+ },
487
+ {
488
+ symbol: 'm-3',
489
+ page: 766,
490
+ rows: [
491
+ ['d', true, 41, 'h,k,l'],
492
+ ['d', false, 43, 'h,h,l', '|h|<|l|'],
493
+ ['d', false, 42, 'h,h,l', '|h|>|l|'],
494
+ ['c', true, 37, '0,k,l'],
495
+ ['c', false, 40, '0,1,1'],
496
+ ['b', true, 35, '1,1,1'],
497
+ ['a', true, 34, '1,0,0'],
498
+ ],
499
+ },
500
+ {
501
+ symbol: '432',
502
+ page: 767,
503
+ rows: [
504
+ ['d', true, 44, 'h,k,l'],
505
+ ['d', false, 43, 'h,h,l', '|h|<|l|'],
506
+ ['d', false, 42, 'h,h,l', '|h|>|l|'],
507
+ ['d', false, 46, '0,k,l'],
508
+ ['c', true, 40, '0,1,1'],
509
+ ['b', true, 35, '1,1,1'],
510
+ ['a', true, 34, '1,0,0'],
511
+ ],
512
+ },
513
+ {
514
+ symbol: '-43m',
515
+ page: 768,
516
+ rows: [
517
+ ['d', true, 45, 'h,k,l'],
518
+ ['d', false, 46, '0,k,l'],
519
+ ['c', true, 39, 'h,h,l', '|h|<|l|'],
520
+ ['c', true, 38, 'h,h,l', '|h|>|l|'],
521
+ ['c', false, 40, '1,1,0'],
522
+ ['b', true, 34, '1,0,0'],
523
+ ['a', true, 33, '1,1,1'],
524
+ ],
525
+ },
526
+ {
527
+ symbol: 'm-3m',
528
+ page: 769,
529
+ rows: [
530
+ ['f', true, 47, 'h,k,l'],
531
+ ['e', true, 43, 'h,h,l', '|h|<|l|'],
532
+ ['e', true, 42, 'h,h,l', '|h|>|l|'],
533
+ ['d', true, 46, '0,k,l'],
534
+ ['c', true, 40, '0,1,1'],
535
+ ['b', true, 35, '1,1,1'],
536
+ ['a', true, 34, '1,0,0'],
537
+ ],
538
+ },
539
+ ];
@@ -137,7 +137,7 @@ function rotationPart(m: Mat3): { r: Mat3; n: number } {
137
137
  }
138
138
 
139
139
  /** The axis of a proper rotation of order n ≥ 2 (sign arbitrary for n = 2). */
140
- function rotationAxis(r: Mat3, n: number): Vec3 {
140
+ export function rotationAxis(r: Mat3, n: number): Vec3 {
141
141
  if (n === 2) {
142
142
  // r + 1 has rank 1; its columns are parallel to the axis.
143
143
  let best: Vec3 = [0, 0, 0];
@@ -156,7 +156,11 @@ function rotationAxis(r: Mat3, n: number): Vec3 {
156
156
  }
157
157
 
158
158
  /** (r − rᵀ)/2 as a vector: sin θ times the unit axis for a rotation by θ. */
159
- const axialVector = (r: Mat3): Vec3 => [(r[2][1] - r[1][2]) / 2, (r[0][2] - r[2][0]) / 2, (r[1][0] - r[0][1]) / 2];
159
+ export const axialVector = (r: Mat3): Vec3 => [
160
+ (r[2][1] - r[1][2]) / 2,
161
+ (r[0][2] - r[2][0]) / 2,
162
+ (r[1][0] - r[0][1]) / 2,
163
+ ];
160
164
 
161
165
  function findAxis(axes: readonly Axis[], u: Vec3, what: string): Axis {
162
166
  const a = axes.find((x) => Math.abs(Math.abs(dot(x.cartesian, u)) - 1) < AXIS_TOLERANCE);