symcrys 0.10.0 → 0.11.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 (218) hide show
  1. package/README.md +6 -6
  2. package/dist/cell.d.ts +19 -16
  3. package/dist/cell.d.ts.map +1 -1
  4. package/dist/cell.js +63 -35
  5. package/dist/cell.js.map +1 -1
  6. package/dist/checks.d.ts +29 -0
  7. package/dist/checks.d.ts.map +1 -0
  8. package/dist/checks.js +79 -0
  9. package/dist/checks.js.map +1 -0
  10. package/dist/closure.d.ts +43 -0
  11. package/dist/closure.d.ts.map +1 -0
  12. package/dist/closure.js +201 -0
  13. package/dist/closure.js.map +1 -0
  14. package/dist/crystalClasses.d.ts +146 -118
  15. package/dist/crystalClasses.d.ts.map +1 -1
  16. package/dist/crystalClasses.js +163 -124
  17. package/dist/crystalClasses.js.map +1 -1
  18. package/dist/freeze.d.ts +7 -0
  19. package/dist/freeze.d.ts.map +1 -0
  20. package/dist/freeze.js +15 -0
  21. package/dist/freeze.js.map +1 -0
  22. package/dist/index.d.ts +11 -10
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/indices.d.ts +31 -5
  27. package/dist/indices.d.ts.map +1 -1
  28. package/dist/indices.js +104 -13
  29. package/dist/indices.js.map +1 -1
  30. package/dist/lattice.d.ts +15 -1
  31. package/dist/lattice.d.ts.map +1 -1
  32. package/dist/lattice.js +30 -1
  33. package/dist/lattice.js.map +1 -1
  34. package/dist/linalg.d.ts +2 -2
  35. package/dist/linalg.d.ts.map +1 -1
  36. package/dist/linalg.js +3 -3
  37. package/dist/linalg.js.map +1 -1
  38. package/dist/magnetic.d.ts +12 -10
  39. package/dist/magnetic.d.ts.map +1 -1
  40. package/dist/magnetic.js +8 -6
  41. package/dist/magnetic.js.map +1 -1
  42. package/dist/notation.d.ts +16 -0
  43. package/dist/notation.d.ts.map +1 -0
  44. package/dist/notation.js +66 -0
  45. package/dist/notation.js.map +1 -0
  46. package/dist/operations.d.ts +40 -26
  47. package/dist/operations.d.ts.map +1 -1
  48. package/dist/operations.js +48 -60
  49. package/dist/operations.js.map +1 -1
  50. package/dist/plane.d.ts +141 -79
  51. package/dist/plane.d.ts.map +1 -1
  52. package/dist/plane.js +147 -77
  53. package/dist/plane.js.map +1 -1
  54. package/dist/pointGroups/crystalForms.d.ts +6 -21
  55. package/dist/pointGroups/crystalForms.d.ts.map +1 -1
  56. package/dist/pointGroups/crystalForms.js +9 -16
  57. package/dist/pointGroups/crystalForms.js.map +1 -1
  58. package/dist/pointGroups/crystalFormsData.d.ts +4 -1
  59. package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
  60. package/dist/pointGroups/crystalFormsData.js +64 -1
  61. package/dist/pointGroups/crystalFormsData.js.map +1 -1
  62. package/dist/pointGroups/elements.d.ts +19 -17
  63. package/dist/pointGroups/elements.d.ts.map +1 -1
  64. package/dist/pointGroups/elements.js +65 -83
  65. package/dist/pointGroups/elements.js.map +1 -1
  66. package/dist/pointGroups/identify.d.ts +10 -18
  67. package/dist/pointGroups/identify.d.ts.map +1 -1
  68. package/dist/pointGroups/identify.js +27 -79
  69. package/dist/pointGroups/identify.js.map +1 -1
  70. package/dist/pointGroups/itaOrder.d.ts +15 -14
  71. package/dist/pointGroups/itaOrder.d.ts.map +1 -1
  72. package/dist/pointGroups/itaOrder.js +116 -94
  73. package/dist/pointGroups/itaOrder.js.map +1 -1
  74. package/dist/pointGroups/itcData.d.ts +96 -0
  75. package/dist/pointGroups/itcData.d.ts.map +1 -0
  76. package/dist/pointGroups/itcData.js +336 -0
  77. package/dist/pointGroups/itcData.js.map +1 -0
  78. package/dist/pointGroups/itcMagneticData.d.ts +55 -0
  79. package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
  80. package/dist/pointGroups/itcMagneticData.js +172 -0
  81. package/dist/pointGroups/itcMagneticData.js.map +1 -0
  82. package/dist/pointGroups/keys.d.ts +32 -0
  83. package/dist/pointGroups/keys.d.ts.map +1 -0
  84. package/dist/pointGroups/keys.js +120 -0
  85. package/dist/pointGroups/keys.js.map +1 -0
  86. package/dist/pointGroups/magneticSymbols.d.ts +6 -5
  87. package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
  88. package/dist/pointGroups/magneticSymbols.js +15 -12
  89. package/dist/pointGroups/magneticSymbols.js.map +1 -1
  90. package/dist/pointGroups/orbits.d.ts +23 -42
  91. package/dist/pointGroups/orbits.d.ts.map +1 -1
  92. package/dist/pointGroups/orbits.js +20 -62
  93. package/dist/pointGroups/orbits.js.map +1 -1
  94. package/dist/pointGroups/pointGroups.d.ts +135 -67
  95. package/dist/pointGroups/pointGroups.d.ts.map +1 -1
  96. package/dist/pointGroups/pointGroups.js +409 -244
  97. package/dist/pointGroups/pointGroups.js.map +1 -1
  98. package/dist/pointGroups/properties.d.ts +21 -22
  99. package/dist/pointGroups/properties.d.ts.map +1 -1
  100. package/dist/pointGroups/properties.js +40 -37
  101. package/dist/pointGroups/properties.js.map +1 -1
  102. package/dist/pointGroups/seitzData.d.ts +26 -0
  103. package/dist/pointGroups/seitzData.d.ts.map +1 -0
  104. package/dist/pointGroups/seitzData.js +130 -0
  105. package/dist/pointGroups/seitzData.js.map +1 -0
  106. package/dist/pointGroups/wyckoff.d.ts +70 -40
  107. package/dist/pointGroups/wyckoff.d.ts.map +1 -1
  108. package/dist/pointGroups/wyckoff.js +98 -91
  109. package/dist/pointGroups/wyckoff.js.map +1 -1
  110. package/dist/pointGroups/wyckoffData.d.ts +7 -4
  111. package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
  112. package/dist/pointGroups/wyckoffData.js +789 -168
  113. package/dist/pointGroups/wyckoffData.js.map +1 -1
  114. package/dist/siteSymmetry.d.ts +9 -17
  115. package/dist/siteSymmetry.d.ts.map +1 -1
  116. package/dist/siteSymmetry.js +62 -47
  117. package/dist/siteSymmetry.js.map +1 -1
  118. package/dist/spaceGroups/affine.d.ts.map +1 -1
  119. package/dist/spaceGroups/affine.js +3 -2
  120. package/dist/spaceGroups/affine.js.map +1 -1
  121. package/dist/spaceGroups/cell.d.ts +43 -31
  122. package/dist/spaceGroups/cell.d.ts.map +1 -1
  123. package/dist/spaceGroups/cell.js +173 -85
  124. package/dist/spaceGroups/cell.js.map +1 -1
  125. package/dist/spaceGroups/describe.d.ts +12 -10
  126. package/dist/spaceGroups/describe.d.ts.map +1 -1
  127. package/dist/spaceGroups/describe.js +11 -10
  128. package/dist/spaceGroups/describe.js.map +1 -1
  129. package/dist/spaceGroups/planeGroupData.d.ts +1 -1
  130. package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
  131. package/dist/spaceGroups/planeGroupData.js +8 -8
  132. package/dist/spaceGroups/planeGroupData.js.map +1 -1
  133. package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
  134. package/dist/spaceGroups/planeGroups.js +2 -1
  135. package/dist/spaceGroups/planeGroups.js.map +1 -1
  136. package/dist/spaceGroups/positions.d.ts +48 -19
  137. package/dist/spaceGroups/positions.d.ts.map +1 -1
  138. package/dist/spaceGroups/positions.js +166 -67
  139. package/dist/spaceGroups/positions.js.map +1 -1
  140. package/dist/tensors/propertyTable.d.ts +3 -1
  141. package/dist/tensors/propertyTable.d.ts.map +1 -1
  142. package/dist/tensors/propertyTable.js +17 -10
  143. package/dist/tensors/propertyTable.js.map +1 -1
  144. package/dist/tensors/rowEchelon.d.ts +12 -4
  145. package/dist/tensors/rowEchelon.d.ts.map +1 -1
  146. package/dist/tensors/rowEchelon.js +24 -11
  147. package/dist/tensors/rowEchelon.js.map +1 -1
  148. package/dist/tensors/tensorForm.d.ts +75 -34
  149. package/dist/tensors/tensorForm.d.ts.map +1 -1
  150. package/dist/tensors/tensorForm.js +173 -68
  151. package/dist/tensors/tensorForm.js.map +1 -1
  152. package/dist/tensors/tensorProperties.d.ts +10 -9
  153. package/dist/tensors/tensorProperties.d.ts.map +1 -1
  154. package/dist/tensors/tensorProperties.js +22 -12
  155. package/dist/tensors/tensorProperties.js.map +1 -1
  156. package/dist/tolerances.d.ts +56 -1
  157. package/dist/tolerances.d.ts.map +1 -1
  158. package/dist/tolerances.js +51 -1
  159. package/dist/tolerances.js.map +1 -1
  160. package/dist/version.d.ts +1 -1
  161. package/dist/version.js +1 -1
  162. package/package.json +1 -1
  163. package/src/cell.ts +78 -51
  164. package/src/checks.ts +84 -0
  165. package/src/closure.ts +214 -0
  166. package/src/crystalClasses.ts +234 -160
  167. package/src/freeze.ts +14 -0
  168. package/src/index.ts +21 -10
  169. package/src/indices.ts +108 -18
  170. package/src/lattice.ts +41 -1
  171. package/src/linalg.ts +3 -3
  172. package/src/magnetic.ts +14 -9
  173. package/src/notation.ts +73 -0
  174. package/src/operations.ts +78 -69
  175. package/src/plane.ts +253 -127
  176. package/src/pointGroups/crystalForms.ts +11 -44
  177. package/src/pointGroups/crystalFormsData.ts +66 -1
  178. package/src/pointGroups/elements.ts +82 -92
  179. package/src/pointGroups/identify.ts +38 -97
  180. package/src/pointGroups/itaOrder.ts +117 -101
  181. package/src/pointGroups/itcData.ts +404 -0
  182. package/src/pointGroups/itcMagneticData.ts +206 -0
  183. package/src/pointGroups/keys.ts +144 -0
  184. package/src/pointGroups/magneticSymbols.ts +18 -17
  185. package/src/pointGroups/orbits.ts +41 -89
  186. package/src/pointGroups/pointGroups.ts +540 -297
  187. package/src/pointGroups/properties.ts +44 -40
  188. package/src/pointGroups/seitzData.ts +147 -0
  189. package/src/pointGroups/wyckoff.ts +137 -112
  190. package/src/pointGroups/wyckoffData.ts +793 -170
  191. package/src/siteSymmetry.ts +71 -64
  192. package/src/spaceGroups/affine.ts +3 -2
  193. package/src/spaceGroups/cell.ts +227 -116
  194. package/src/spaceGroups/describe.ts +22 -19
  195. package/src/spaceGroups/planeGroupData.ts +9 -9
  196. package/src/spaceGroups/planeGroups.ts +2 -1
  197. package/src/spaceGroups/positions.ts +202 -78
  198. package/src/tensors/propertyTable.ts +29 -17
  199. package/src/tensors/rowEchelon.ts +28 -9
  200. package/src/tensors/tensorForm.ts +260 -89
  201. package/src/tensors/tensorProperties.ts +34 -14
  202. package/src/tolerances.ts +66 -1
  203. package/src/version.ts +1 -1
  204. package/dist/pointGroups/data.d.ts +0 -75
  205. package/dist/pointGroups/data.d.ts.map +0 -1
  206. package/dist/pointGroups/data.js +0 -212
  207. package/dist/pointGroups/data.js.map +0 -1
  208. package/dist/pointGroups/magneticData.d.ts +0 -66
  209. package/dist/pointGroups/magneticData.d.ts.map +0 -1
  210. package/dist/pointGroups/magneticData.js +0 -184
  211. package/dist/pointGroups/magneticData.js.map +0 -1
  212. package/dist/spaceGroups/snap.d.ts +0 -20
  213. package/dist/spaceGroups/snap.d.ts.map +0 -1
  214. package/dist/spaceGroups/snap.js +0 -103
  215. package/dist/spaceGroups/snap.js.map +0 -1
  216. package/src/pointGroups/data.ts +0 -305
  217. package/src/pointGroups/magneticData.ts +0 -328
  218. package/src/spaceGroups/snap.ts +0 -121
package/dist/plane.d.ts CHANGED
@@ -12,6 +12,8 @@
12
12
  import { type PlaneSystem } from './spaceGroups/planeGroupData.js';
13
13
  import { type PlanePointGroupKey } from './spaceGroups/planePointGroups.js';
14
14
  export { VERSION } from './version.js';
15
+ export { EPSILON, type ToleranceOptions } from './tolerances.js';
16
+ import { type ToleranceOptions } from './tolerances.js';
15
17
  export type { PlaneSystem } from './spaceGroups/planeGroupData.js';
16
18
  /** The short symbol of a plane group, e.g. `'p2mg'`. */
17
19
  export type PlaneGroupKey = 'p1' | 'p2' | 'pm' | 'pg' | 'cm' | 'p2mm' | 'p2mg' | 'p2gg' | 'c2mm' | 'p4' | 'p4mm' | 'p4gm' | 'p3' | 'p3m1' | 'p31m' | 'p6' | 'p6mm';
@@ -26,13 +28,10 @@ export interface SettingOptions {
26
28
  /** 1-based setting: for the point group `3m` 1 is `3m1` (default) and 2 is `31m`; the other point groups have one, and a plane group takes only 1. */
27
29
  readonly setting?: number;
28
30
  }
29
- /** Options of the functions that take a point. */
30
- export interface PointOptions {
31
- /**
32
- * Two points count as the same, modulo the lattice, if each coordinate (lattice basis) differs
33
- * by less than this from an integer. Default 10⁻⁶; must be below 1/2.
34
- */
35
- readonly tolerance?: number;
31
+ /** Options of `symbol`: the setting, and the form of a plane group's symbol. */
32
+ export interface SymbolOptions extends SettingOptions {
33
+ /** `'short'` (default): the symbol as one word, the key; `'full'`: the full symbol, positions separated by spaces (`'p 1 m 1'` for `pm`). */
34
+ readonly form?: 'short' | 'full';
36
35
  }
37
36
  /** An operation (W, w) in the lattice basis: x ↦ W·x + w. */
38
37
  export interface PlaneOperation {
@@ -47,8 +46,6 @@ export interface PlaneGroup {
47
46
  readonly key: PlaneGroupKey;
48
47
  /** The number of the plane group, 1 to 17. */
49
48
  readonly number: number;
50
- /** The full symbol as ITA prints it, e.g. `'p2mg'` or `'p1m1'`. */
51
- readonly fullSymbol: string;
52
49
  /** The plane point group. */
53
50
  readonly pointGroup: PointGroupKey;
54
51
  /** The setting of the point group: 2 for `p31m`, otherwise 1. */
@@ -57,10 +54,8 @@ export interface PlaneGroup {
57
54
  readonly crystalSystem: PlaneSystem;
58
55
  /** The centring translations besides (0, 0): `[[0.5, 0.5]]` for `cm` and `c2mm`, otherwise none. */
59
56
  readonly centring: readonly (readonly number[])[];
60
- /** The block "Origin" as ITA prints it, e.g. `'at 2mm'`. */
57
+ /** The block "Origin" as ITA prints it, its positions spaced as printed, e.g. `'at 2 m m'`, `'at 2 1 g'`. */
61
58
  readonly origin: string;
62
- /** The order of the group modulo the lattice: the number of `operations`. */
63
- readonly order: number;
64
59
  }
65
60
  /** A plane point group. */
66
61
  export interface PointGroup {
@@ -78,14 +73,17 @@ export interface Setting {
78
73
  /** Its symbol: `'3m1'` or `'31m'` for `3m`, otherwise the key. */
79
74
  readonly symbol: string;
80
75
  /** True for the default setting (setting 1). */
81
- readonly default: boolean;
76
+ readonly isDefault: boolean;
82
77
  }
83
78
  /** What an operation is, geometrically, as ITA describes it under "Symmetry operations". */
84
79
  export interface OperationDescription {
85
- /** `'identity'`, `'translation'`, `'rotation'`, `'mirror'` (a reflection in a line) or `'glide'` (a glide reflection). */
86
- readonly kind: 'identity' | 'translation' | 'rotation' | 'mirror' | 'glide';
87
- /** The order of the linear part: 1 for the identity and a translation, 2 for a mirror or glide. */
88
- readonly order: number;
80
+ /**
81
+ * `'identity'`, `'translation'`, `'rotation'`, `'reflection'` (in a line) or `'glide-reflection'`,
82
+ * as ITA names the operations (ITA 2016 Table 2.1.2.1, p. 145).
83
+ */
84
+ readonly kind: 'identity' | 'translation' | 'rotation' | 'reflection' | 'glide-reflection';
85
+ /** The n of the linear part (an n-fold rotation): 1 for the identity and a translation, 2 for a reflection or glide reflection. */
86
+ readonly n: number;
89
87
  /** For a rotation of order 3 or more: `'+'` if it turns a towards b, `'-'` otherwise. */
90
88
  readonly sense?: '+' | '-';
91
89
  /** For a translation: the translation vector. */
@@ -98,12 +96,14 @@ export interface OperationDescription {
98
96
  /** For a mirror or glide: the direction of its line, the shortest integer vector, first non-zero component positive. */
99
97
  readonly direction?: readonly number[];
100
98
  /**
101
- * For a mirror or glide: the normal of its line in the lattice basis, its symmetry direction as in
102
- * ITA Table 2.1.3.1: the shortest integer vector along the columns of W − I, first non-zero
103
- * component positive. Without a metric it is not the perpendicular of `direction`: in a hexagonal
99
+ * For a reflection or glide reflection: its axis, the normal of its line in the lattice basis (as
100
+ * the `axis` of a reflection of the point groups is the normal of its plane, #137 C3), its symmetry
101
+ * direction with the sign of its Seitz symbol (ITA 2016 Tables 1.4.2.4, 1.4.2.5, p. 53: `m₁₀`, `m₁₂`,
102
+ * #107, #114): the shortest integer vector along the columns of W − I, first non-zero component
103
+ * positive, which is the Seitz direction for every plane group (tested). Without a metric it is not the perpendicular of `direction`: in a hexagonal
104
104
  * basis the normal of a line along [1,0] is [1,2].
105
105
  */
106
- readonly normal?: readonly number[];
106
+ readonly axis?: readonly number[];
107
107
  /** For a glide: the glide vector (w + W·w)/2, not reduced modulo the lattice. */
108
108
  readonly glide?: readonly number[];
109
109
  }
@@ -118,56 +118,86 @@ export interface WyckoffPosition {
118
118
  /** The printed coordinates of the (0,0)+ set, e.g. `['x,0', '-x,0']`; a leading `-` is an overbar. */
119
119
  readonly coordinates: readonly string[];
120
120
  }
121
- /** A point snapped onto a Wyckoff position: the position, as `wyckoffPositions` gives it, and the point on it. */
122
- export interface SnappedPosition extends WyckoffPosition {
123
- /** The point on the position nearest to the given one, modulo the lattice, in [0, 1). */
121
+ /** The distance of a point to a Wyckoff position: the position, as `wyckoffPositions` gives it, the nearest point of it, and the distance. */
122
+ export interface WyckoffDistance extends WyckoffPosition {
123
+ /** The point of the position nearest to the given one (lattice basis), modulo the lattice, in [0, 1). */
124
124
  readonly point: readonly number[];
125
+ /**
126
+ * The distance of the given point to the position: without a basis the larger of the two
127
+ * coordinate differences modulo the lattice, with a basis Euclidean in its unit.
128
+ */
129
+ readonly distance: number;
130
+ }
131
+ /** Options of `wyckoffDistances`. */
132
+ export interface WyckoffDistanceOptions {
133
+ /**
134
+ * The Cartesian basis of the lattice, a 2 × 2 matrix whose columns are a and b; with it the
135
+ * distances are Euclidean, without it they are measured per lattice coordinate.
136
+ */
137
+ readonly basis?: readonly (readonly number[])[];
125
138
  }
126
139
  /** The site symmetry of a point under a plane group. */
127
140
  export interface SiteSymmetry {
128
141
  /** Indices into `operations` of those that map the point onto itself modulo the lattice, ascending: a subgroup. */
129
142
  readonly operations: readonly number[];
130
- /** The point set onto the fixed space of its site symmetry, in [0, 1), which removes rounding errors within the tolerance. */
143
+ /**
144
+ * The point set onto the Wyckoff position it lies on (the nearest point of the position, as
145
+ * `wyckoffDistances` gives it), in [0, 1).
146
+ */
131
147
  readonly point: readonly number[];
132
148
  /** The number of points in the conventional cell equivalent to it. */
133
149
  readonly multiplicity: number;
134
150
  /** True if no operation other than the identity maps the point onto itself (general position). */
135
151
  readonly general: boolean;
136
152
  }
137
- /** The asymmetric unit of a plane group, a convex polygon in the lattice basis. */
153
+ /** The asymmetric unit of a plane group: the printed inequalities, and the convex polygon they bound (lattice basis). */
138
154
  export interface AsymmetricUnit {
139
- /** Its vertices, counter-clockwise (a towards b), starting at the lowest (smallest y, then x). */
140
- readonly vertices: readonly (readonly number[])[];
141
- /** Per edge, the inequality [a, b, c] for a·x + b·y ≤ c (integers, no common factor); entry i holds the edge from vertex i to vertex i + 1. */
155
+ /**
156
+ * The inequalities as ITA prints them, in printed order, each [a, b, c] for a·x + b·y ≤ c
157
+ * (integers, no common factor), also those that hold no edge of the polygon (p3: x ≤ 2/3).
158
+ */
142
159
  readonly inequalities: readonly (readonly number[])[];
160
+ /** The vertices of the polygon, counter-clockwise (a towards b), starting at the lowest (smallest y, then x). */
161
+ readonly vertices: readonly (readonly number[])[];
162
+ /** Per edge, from vertex i to vertex i + 1, the index into `inequalities` of the inequality that holds it. */
163
+ readonly edges: readonly number[];
143
164
  }
144
- /** A rotation centre in the cell. */
145
- export interface RotationCentre {
146
- /** The highest order of a rotation about it. */
147
- readonly order: number;
148
- /** Its position in [0, 1]². */
165
+ /** A rotation point (ITA 2016 Table 2.1.2.1, p. 145: the symmetry element of a rotation in the plane). */
166
+ export interface RotationPoint {
167
+ /** The highest n of an n-fold rotation about it. */
168
+ readonly n: number;
169
+ /** Its location, lattice basis. */
149
170
  readonly point: readonly number[];
150
171
  }
151
- /** A mirror or glide line: the part of it in the cell. */
172
+ /** A mirror or glide line, as a point and a direction (lattice basis). */
152
173
  export interface SymmetryLine {
153
174
  /** `'mirror'` or `'glide'`. */
154
175
  readonly kind: 'mirror' | 'glide';
155
176
  /** The direction of the line, the shortest integer vector, first non-zero component positive. */
156
177
  readonly direction: readonly number[];
157
- /** The normal of the line in the lattice basis, as in `describeOperations`. */
158
- readonly normal: readonly number[];
178
+ /** The normal of the line in the lattice basis, its symmetry direction, as `axis` in `describeOperations`. */
179
+ readonly axis: readonly number[];
159
180
  /** For a glide line its glide vector s·direction, 0 < s < 1; for a mirror line (0, 0). */
160
181
  readonly glide: readonly number[];
161
- /** The two ends of the segment of the line in the cell [0, 1]², in the order of `direction`. */
162
- readonly segment: readonly (readonly number[])[];
182
+ /** A point of the line: its intersection with y = 0, or with x = 0 for a line along a. */
183
+ readonly point: readonly number[];
163
184
  }
164
- /** The symmetry elements of a plane group in its conventional cell [0, 1]², boundary included. */
185
+ /** Symmetry elements of a plane group. */
165
186
  export interface SymmetryElements {
166
- /** The rotation centres, by descending order, then by y and x. */
167
- readonly rotations: readonly RotationCentre[];
168
- /** The mirror and glide lines that cross the cell, by direction, then by the start of the segment (y, then x). */
187
+ /** The rotation points, by descending n, then by y and x. */
188
+ readonly rotationPoints: readonly RotationPoint[];
189
+ /** The mirror and glide lines, by direction, then by their point (x on y = 0, or y on x = 0), mirror before glide. */
169
190
  readonly lines: readonly SymmetryLine[];
170
191
  }
192
+ /** Options of `symmetryElements`. */
193
+ export interface SymmetryElementsOptions {
194
+ /**
195
+ * A box of the plane, lattice basis, as its lower left and its upper right corner (x₀ ≤ x₁,
196
+ * y₀ ≤ y₁; a line or a point of the plane also): all lattice translates of the elements that meet
197
+ * it, boundary included, the lines not clipped.
198
+ */
199
+ readonly box?: readonly (readonly number[])[];
200
+ }
171
201
  /** The plane group with this key (short symbol). Throws a RangeError for an unknown key. */
172
202
  export declare function planeGroup(key: PlaneGroupKey): PlaneGroup;
173
203
  /** The plane point group with this key. Throws a RangeError for an unknown key. */
@@ -177,8 +207,16 @@ export declare function pointGroup(key: PointGroupKey): PointGroup;
177
207
  * others. Throws a RangeError for an unknown key.
178
208
  */
179
209
  export declare function settings(key: PointGroupKey): readonly Setting[];
180
- /** The symbol of a plane point group in a setting: `'3m1'` or `'31m'` for `3m`, otherwise the key. */
181
- export declare function symbol(key: PointGroupKey, options?: SettingOptions): string;
210
+ /**
211
+ * The symbol of a plane group or a plane point group (#137 F4). In the short form (the default) the
212
+ * Hermann–Mauguin symbol as one word: for a plane group the key (`'p2mg'`, `'pm'`), for a plane
213
+ * point group in a setting `'3m1'` or `'31m'` for `3m`, otherwise the key. In the form `'full'`
214
+ * the full symbol with its positions separated by spaces, as in the other entry points: `'p 1 m 1'`
215
+ * for `pm` (ITA prints `p1m1`), `'p 2 m g'`, `'3 m 1'`; ITA prints no other full symbol for a plane
216
+ * point group (Ch. 3.2, p. 721, and Table 3.2.3.1). A plane group has setting 1 only. Throws a
217
+ * RangeError for an unknown key, setting or form.
218
+ */
219
+ export declare function symbol(key: PlaneGroupKey | PointGroupKey, options?: SymbolOptions): string;
182
220
  /**
183
221
  * The operations of a plane group or a plane point group, in ITA's order, identity first. A plane
184
222
  * group: one per coset of the integer translations, translations in [0, 1), the general position
@@ -196,7 +234,7 @@ export declare function operations(key: PlaneGroupKey | PointGroupKey, options?:
196
234
  export declare function generators(key: PlaneGroupKey | PointGroupKey, options?: SettingOptions): readonly PlaneOperation[];
197
235
  /**
198
236
  * Each operation of `operations` (same key and setting) described geometrically, index for index:
199
- * what it is, its order and sense, where its symmetry element lies, its glide part. Throws a
237
+ * what it is, its n and sense, where its symmetry element lies, its glide part. Throws a
200
238
  * RangeError for an unknown key or setting.
201
239
  */
202
240
  export declare function describeOperations(key: PlaneGroupKey | PointGroupKey, options?: SettingOptions): readonly OperationDescription[];
@@ -205,12 +243,13 @@ export declare function describeOperations(key: PlaneGroupKey | PointGroupKey, o
205
243
  * `describeOperations` describes those of a group: for instance a product of operations, an
206
244
  * operation shifted by a lattice translation, or the operations of a site symmetry. Each operation is
207
245
  * `{ matrix, translation }` as `operations` gives it. Each matrix must have integer entries (within
208
- * 10⁻⁹) and be the linear part of a crystallographic plane point group (determinant ±1, order 1,
209
- * 2, 3, 4 or 6); each translation must lie within 10⁻⁹ of a fraction with a denominator of at most
210
- * 12 (1/3 as 0.333…), as the translations of `operations` and their products do. Throws a
211
- * RangeError otherwise.
246
+ * the tolerance, per entry) and be the linear part of a crystallographic plane point group
247
+ * (determinant ±1, order 1, 2, 3, 4 or 6); each component of a translation is read as the fraction
248
+ * with a denominator of at most 12 within the tolerance (1/3 from 0.333…), as the translations of
249
+ * `operations` and their products are. Throws a RangeError otherwise, also for a component within
250
+ * the tolerance of two such fractions (which can lie 1/132 apart).
212
251
  */
213
- export declare function describeOperationsOf(operations: readonly PlaneOperation[]): readonly OperationDescription[];
252
+ export declare function describeOperationsOf(operations: readonly PlaneOperation[], options?: ToleranceOptions): readonly OperationDescription[];
214
253
  /**
215
254
  * The Wyckoff positions of a plane group as ITA prints them, general position first. Throws a
216
255
  * RangeError for an unknown key and for a plane point group, whose positions are not in symcrys
@@ -218,45 +257,68 @@ export declare function describeOperationsOf(operations: readonly PlaneOperation
218
257
  */
219
258
  export declare function wyckoffPositions(key: PlaneGroupKey): readonly WyckoffPosition[];
220
259
  /**
221
- * The site symmetry of a point (lattice basis) under a plane group: the operations that map it
222
- * onto itself modulo the lattice within the tolerance, closed into a group, and the point set onto
223
- * their fixed space. Throws a RangeError for an unknown key, a point that is not two finite
224
- * numbers, or a tolerance outside (0, 1/2).
260
+ * The site symmetry of a point (lattice basis) under a plane group, as one notion with its Wyckoff
261
+ * position (#137 F1): the point is set onto the position it lies on within the tolerance
262
+ * (`wyckoffPosition`), and the site symmetry is that of the point there; `point` is the point on the
263
+ * position. Throws a RangeError for an unknown key, a point that is not two finite numbers, or a
264
+ * tolerance outside (0, 1/2).
225
265
  */
226
- export declare function siteSymmetry(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): SiteSymmetry;
266
+ export declare function siteSymmetry(key: PlaneGroupKey, point: readonly number[], options?: ToleranceOptions): SiteSymmetry;
227
267
  /**
228
268
  * The Wyckoff position of a point (lattice basis) under a plane group, as `wyckoffPositions` gives
229
- * it: the printed position of the point's multiplicity whose coordinates, with the centring, reach
230
- * the point set onto its site symmetry. Throws a RangeError as `siteSymmetry`.
269
+ * it: the most special printed position whose point set lies within the tolerance of the point,
270
+ * measured per coordinate modulo the lattice, and among positions of equal multiplicity the nearest
271
+ * (the distance of `wyckoffDistances`); the general position always holds the point. Throws a
272
+ * RangeError as `siteSymmetry`.
231
273
  */
232
- export declare function wyckoffPositionOf(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): WyckoffPosition;
274
+ export declare function wyckoffPosition(key: PlaneGroupKey, point: readonly number[], options?: ToleranceOptions): WyckoffPosition;
233
275
  /**
234
- * Snaps a point (lattice basis) onto the most special Wyckoff position of a plane group that lies
235
- * within the tolerance of it, measured per coordinate modulo the lattice: a position without a free
236
- * parameter (a point) before one with one (a line), before the general position, which always holds
237
- * the point; among positions of the same kind the nearest. Returns the position, as
238
- * `wyckoffPositions` gives it, and the nearest point on it, in [0, 1). Unlike `wyckoffPositionOf`,
239
- * which asks whether the images of the point lie within the tolerance of it, this asks whether the
240
- * point lies within the tolerance of the position: an application that drags a point and lets it
241
- * snap passes a tolerance such as 10⁻². The point on a line is found by least squares in the
242
- * lattice coordinates. Throws a RangeError as `siteSymmetry`.
276
+ * The distance of a point (lattice basis) to every Wyckoff position of a plane group, in the
277
+ * printed order of `wyckoffPositions`, each with the nearest point of the position (#137 F1, #108).
278
+ * The point set of a position is the union of its printed coordinates with every centring and
279
+ * lattice translation: a point, a line or the plane. Without a basis the distance is the larger of
280
+ * the two coordinate differences modulo the lattice, the metric of the tolerance of
281
+ * `wyckoffPosition`; with a basis (columns a, b) it is Euclidean, and the nearest point is the
282
+ * Euclidean nearest one; per coordinate the nearest point of a line need not be unique (on x,0 every x
283
+ * within the distance is as near), and then it is one of them. The basis should be a reduced cell,
284
+ * such as the conventional one: the nearest lattice translate is sought near the rounded
285
+ * coordinates. How to snap a dragged point onto a position (which position wins, within
286
+ * which radius) is the application's choice; this gives the numbers for it. Throws a RangeError for
287
+ * an unknown key, a point that is not two finite numbers, and a basis that is not a non-singular
288
+ * 2 × 2 matrix.
243
289
  */
244
- export declare function snapToWyckoffPosition(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): SnappedPosition;
290
+ export declare function wyckoffDistances(key: PlaneGroupKey, point: readonly number[], options?: WyckoffDistanceOptions): readonly WyckoffDistance[];
291
+ /** One point of the orbit of a point. */
292
+ export interface PointOrbitEntry {
293
+ /** The image, in the lattice basis, in [0, 1). */
294
+ readonly point: readonly number[];
295
+ /** Indices into `operations` of the operations that map the given point here (modulo the lattice), ascending. */
296
+ readonly operations: readonly number[];
297
+ }
245
298
  /**
246
- * The orbit of a point (lattice basis) under a plane group: its distinct images in the
247
- * conventional cell, each in [0, 1), in the order of the operations that first give them; images
248
- * that coincide within the tolerance are merged. Throws a RangeError as `siteSymmetry`.
299
+ * The orbit of a point (lattice basis) under a plane group: the images of the point set onto its
300
+ * Wyckoff position (as `siteSymmetry` sets it), each in [0, 1), in the order of the operations that
301
+ * first give them, each with the indices of the operations that map the point there (as the
302
+ * entries of the orbits of the point groups): one entry per coset of the site symmetry, so the
303
+ * first entry holds the operations of `siteSymmetry`. Throws a RangeError as `siteSymmetry`.
249
304
  */
250
- export declare function orbit(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): readonly (readonly number[])[];
305
+ export declare function orbit(key: PlaneGroupKey, point: readonly number[], options?: ToleranceOptions): readonly PointOrbitEntry[];
251
306
  /**
252
- * The asymmetric unit of a plane group as ITA prints it: a convex polygon given by its vertices and,
253
- * per edge, the printed inequality that holds it. Throws a RangeError for an unknown key.
307
+ * The asymmetric unit of a plane group as ITA prints it (#137 F3): the printed inequalities, all of
308
+ * them in printed order (a double inequality and a `min` give one each), and the convex polygon
309
+ * they bound, with its vertices and, per edge, the index of the inequality that holds it. Throws a
310
+ * RangeError for an unknown key.
254
311
  */
255
312
  export declare function asymmetricUnit(key: PlaneGroupKey): AsymmetricUnit;
256
313
  /**
257
- * The symmetry elements of a plane group in its conventional cell [0, 1]², boundary included:
258
- * every rotation centre with the highest order of a rotation about it, and every mirror and glide
259
- * line that crosses the cell, with the segment inside it. Throws a RangeError for an unknown key.
314
+ * The symmetry elements of a plane group (#137 F2). Without a box, each element once modulo the
315
+ * lattice translations, the centring (1/2, 1/2) included, as ITA describes them (cm: the mirror line
316
+ * 0,y and the glide line 1/4,y): every rotation point in [0, 1)² with the highest n of a rotation
317
+ * about it, and every mirror and glide line, as a point in [0, 1)² and a direction. With a box, all
318
+ * their lattice translates that meet it, boundary included; the lines are not clipped, since
319
+ * clipping is drawing. Throws a RangeError for an unknown key, a box that is not two corners of
320
+ * finite numbers, the first not above or right of the second, and a box with more than a million
321
+ * rotation points.
260
322
  */
261
- export declare function symmetryElements(key: PlaneGroupKey): SymmetryElements;
323
+ export declare function symmetryElements(key: PlaneGroupKey, options?: SymmetryElementsOptions): SymmetryElements;
262
324
  //# sourceMappingURL=plane.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plane.d.ts","sourceRoot":"","sources":["../src/plane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAOnE,OAAO,EASL,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,wDAAwD;AACxD,MAAM,MAAM,aAAa,GACrB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAE/C,+FAA+F;AAC/F,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAAsD,CAAC;AAE5G,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAA+C,CAAC;AAErG,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,sJAAsJ;IACtJ,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,kDAAkD;AAClD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