symcrys 0.6.0 → 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 (89) hide show
  1. package/README.md +5 -4
  2. package/dist/crystalClasses.d.ts +106 -1
  3. package/dist/crystalClasses.d.ts.map +1 -1
  4. package/dist/crystalClasses.js +80 -1
  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/lattice.d.ts +5 -1
  11. package/dist/lattice.d.ts.map +1 -1
  12. package/dist/lattice.js +3 -1
  13. package/dist/lattice.js.map +1 -1
  14. package/dist/magnetic.d.ts +3 -0
  15. package/dist/magnetic.d.ts.map +1 -1
  16. package/dist/magnetic.js +2 -0
  17. package/dist/magnetic.js.map +1 -1
  18. package/dist/operations.d.ts +2 -0
  19. package/dist/operations.d.ts.map +1 -1
  20. package/dist/operations.js.map +1 -1
  21. package/dist/pointGroups/crystalForms.d.ts +70 -0
  22. package/dist/pointGroups/crystalForms.d.ts.map +1 -0
  23. package/dist/pointGroups/crystalForms.js +69 -0
  24. package/dist/pointGroups/crystalForms.js.map +1 -0
  25. package/dist/pointGroups/crystalFormsData.d.ts +32 -0
  26. package/dist/pointGroups/crystalFormsData.d.ts.map +1 -0
  27. package/dist/pointGroups/crystalFormsData.js +518 -0
  28. package/dist/pointGroups/crystalFormsData.js.map +1 -0
  29. package/dist/pointGroups/data.d.ts +2 -1
  30. package/dist/pointGroups/data.d.ts.map +1 -1
  31. package/dist/pointGroups/data.js.map +1 -1
  32. package/dist/pointGroups/elements.d.ts +9 -2
  33. package/dist/pointGroups/elements.d.ts.map +1 -1
  34. package/dist/pointGroups/elements.js +7 -3
  35. package/dist/pointGroups/elements.js.map +1 -1
  36. package/dist/pointGroups/identify.d.ts +75 -0
  37. package/dist/pointGroups/identify.d.ts.map +1 -0
  38. package/dist/pointGroups/identify.js +193 -0
  39. package/dist/pointGroups/identify.js.map +1 -0
  40. package/dist/pointGroups/magneticData.d.ts +6 -1
  41. package/dist/pointGroups/magneticData.d.ts.map +1 -1
  42. package/dist/pointGroups/magneticData.js +4 -0
  43. package/dist/pointGroups/magneticData.js.map +1 -1
  44. package/dist/pointGroups/orbits.d.ts +85 -0
  45. package/dist/pointGroups/orbits.d.ts.map +1 -0
  46. package/dist/pointGroups/orbits.js +134 -0
  47. package/dist/pointGroups/orbits.js.map +1 -0
  48. package/dist/pointGroups/pointGroups.d.ts +10 -2
  49. package/dist/pointGroups/pointGroups.d.ts.map +1 -1
  50. package/dist/pointGroups/pointGroups.js +2 -2
  51. package/dist/pointGroups/pointGroups.js.map +1 -1
  52. package/dist/pointGroups/wyckoff.d.ts +42 -1
  53. package/dist/pointGroups/wyckoff.d.ts.map +1 -1
  54. package/dist/pointGroups/wyckoff.js +55 -27
  55. package/dist/pointGroups/wyckoff.js.map +1 -1
  56. package/dist/siteSymmetry.d.ts +2 -1
  57. package/dist/siteSymmetry.d.ts.map +1 -1
  58. package/dist/siteSymmetry.js.map +1 -1
  59. package/dist/tensors/propertyTable.d.ts +12 -2
  60. package/dist/tensors/propertyTable.d.ts.map +1 -1
  61. package/dist/tensors/propertyTable.js +11 -2
  62. package/dist/tensors/propertyTable.js.map +1 -1
  63. package/dist/tensors/tensorForm.d.ts +6 -1
  64. package/dist/tensors/tensorForm.d.ts.map +1 -1
  65. package/dist/tensors/tensorForm.js +1 -1
  66. package/dist/tensors/tensorForm.js.map +1 -1
  67. package/dist/version.d.ts +6 -2
  68. package/dist/version.d.ts.map +1 -1
  69. package/dist/version.js +6 -2
  70. package/dist/version.js.map +1 -1
  71. package/package.json +2 -2
  72. package/src/crystalClasses.ts +164 -3
  73. package/src/index.ts +12 -0
  74. package/src/lattice.ts +5 -1
  75. package/src/magnetic.ts +18 -0
  76. package/src/operations.ts +2 -0
  77. package/src/pointGroups/crystalForms.ts +143 -0
  78. package/src/pointGroups/crystalFormsData.ts +539 -0
  79. package/src/pointGroups/data.ts +4 -1
  80. package/src/pointGroups/elements.ts +10 -3
  81. package/src/pointGroups/identify.ts +255 -0
  82. package/src/pointGroups/magneticData.ts +7 -1
  83. package/src/pointGroups/orbits.ts +228 -0
  84. package/src/pointGroups/pointGroups.ts +10 -2
  85. package/src/pointGroups/wyckoff.ts +61 -26
  86. package/src/siteSymmetry.ts +2 -1
  87. package/src/tensors/propertyTable.ts +12 -2
  88. package/src/tensors/tensorForm.ts +6 -1
  89. package/src/version.ts +6 -2
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # symcrys
2
2
 
3
3
  Crystallographic symmetry calculations in TypeScript: point groups with their settings, symbols,
4
- symmetry elements, site symmetry and Wyckoff positions, and the forms of property tensors they
5
- allow. A library without runtime dependencies that runs unbundled in browsers and in Node.
4
+ symmetry elements, site symmetry, Wyckoff positions and crystal forms, and the forms of property
5
+ tensors they allow. A library without runtime dependencies that runs unbundled in browsers and in Node.
6
6
 
7
7
  ```bash
8
8
  npm install symcrys
@@ -28,5 +28,6 @@ allowedProperties("321'"); // ['piezoelectric', 'gyrotropic']: quartz
28
28
  allowedProperties("m'm'2"); // six of the seven names, 'ferromagnetic' among them
29
29
  ```
30
30
 
31
- Documentation, conventions (ITC and Birss) and their print sources, and the Python package of the
32
- same version: [github.com/manganite/symcrys](https://github.com/manganite/symcrys).
31
+ Documentation (getting started, conventions, tensors, examples, reference):
32
+ [manganite.github.io/symcrys](https://manganite.github.io/symcrys/). Source, issues and the Python
33
+ package of the same version: [github.com/manganite/symcrys](https://github.com/manganite/symcrys).
@@ -14,12 +14,18 @@ import type { CrystalSystem } from './lattice.js';
14
14
  import type { Mat3, Vec3 } from './linalg.js';
15
15
  import * as elements from './pointGroups/elements.js';
16
16
  import type { Convention, PointGroupKey, Setting, SettingOptions, SymbolOptions } from './pointGroups/pointGroups.js';
17
+ import * as forms from './pointGroups/crystalForms.js';
18
+ import * as identify from './pointGroups/identify.js';
19
+ import * as orbits from './pointGroups/orbits.js';
17
20
  import * as wyckoff from './pointGroups/wyckoff.js';
21
+ import type { Hkl } from './pointGroups/wyckoff.js';
18
22
  import * as site from './siteSymmetry.js';
23
+ import type { Uvw } from './symmetryDirections.js';
19
24
  import type { TensorPropertyName as MagneticTensorPropertyName } from './tensors/propertyTable.js';
20
25
  import type { IntrinsicSymmetry, TensorForm, TensorParity, TensorRank } from './tensors/tensorForm.js';
21
26
  /** A point operation: an orthogonal Cartesian matrix (rotation, rotoinversion, mirror, inversion). */
22
27
  export interface Operation {
28
+ /** The orthogonal Cartesian 3×3 matrix, rows first. */
23
29
  readonly matrix: Mat3;
24
30
  }
25
31
  /**
@@ -27,7 +33,9 @@ export interface Operation {
27
33
  * the setting or the convention (docs/conventions.md, "Properties").
28
34
  */
29
35
  export interface PointGroup {
36
+ /** The key (docs/conventions.md, "Keys"). */
30
37
  readonly key: PointGroupKey;
38
+ /** The crystal system. */
31
39
  readonly crystalSystem: CrystalSystem;
32
40
  /** Number of operations. */
33
41
  readonly order: number;
@@ -42,15 +50,20 @@ export interface PointGroup {
42
50
  }
43
51
  /** A crystal class in a given setting. */
44
52
  export interface PointGroupInSetting {
53
+ /** The key of the crystal class. */
45
54
  readonly key: PointGroupKey;
55
+ /** The 1-based index of the setting. */
46
56
  readonly setting: number;
47
57
  }
48
58
  /** One point operation described geometrically. */
49
59
  export type OperationDescription = Omit<elements.OperationDescription, 'timeReversal'>;
50
60
  /** The kind of tensor. */
51
61
  export interface TensorSpec {
62
+ /** Number of indices, 0 to 4. */
52
63
  readonly rank: TensorRank;
64
+ /** `'polar'` or `'axial'`: whether an improper operation changes the sign (factor det R). */
53
65
  readonly parity: TensorParity;
66
+ /** The index symmetry of the tensor. */
54
67
  readonly intrinsic: IntrinsicSymmetry;
55
68
  }
56
69
  /**
@@ -59,12 +72,15 @@ export interface TensorSpec {
59
72
  * `timeReversal: true` it is refused, at compile time and at run time.
60
73
  */
61
74
  type OperationArgument = Operation & {
75
+ /** Accepted if false; an operation with time reversal belongs to the magnetic API. */
62
76
  readonly timeReversal?: false;
63
77
  };
64
78
  /** A tensor specification as a caller may pass it; `timeParity: 'i'` is accepted, `'c'` refused. */
65
79
  type TensorSpecArgument = TensorSpec & {
80
+ /** Accepted if `'i'`; a time-odd tensor belongs to the magnetic API. */
66
81
  readonly timeParity?: 'i';
67
82
  };
83
+ /** A named property: the tensor that describes it, what it is and where it is defined. */
68
84
  export interface TensorProperty {
69
85
  /** The kind of tensor whose non-zero form means that the property is allowed. */
70
86
  readonly spec: TensorSpec;
@@ -131,6 +147,40 @@ export declare function isCentrosymmetricOf(operations: readonly OperationArgume
131
147
  * `allowsPropertyOf(operations, 'pyroelectric')`.
132
148
  */
133
149
  export declare function isChiralOf(operations: readonly OperationArgument[]): boolean;
150
+ /** The crystal class of a list of operations: its key, and the setting if the operations are exactly those of one. */
151
+ export interface IdentifiedPointGroup {
152
+ /** The key of the crystal class the operations generate. */
153
+ readonly key: PointGroupKey;
154
+ /**
155
+ * The 1-based index of the setting whose operations the group equals, in the Cartesian frame of
156
+ * symcrys; absent if the group is the class in another orientation.
157
+ */
158
+ readonly setting?: number;
159
+ }
160
+ /** One operation of any list described geometrically (`describeOperationsOf`). */
161
+ export type CartesianOperationDescription = Omit<identify.CartesianOperationDescription, 'timeReversal'>;
162
+ /**
163
+ * The crystal class generated by a list of Cartesian operations, for instance those left after
164
+ * distorting a crystal: its key, and the setting whose operations it equals in the frame of symcrys
165
+ * (absent if the group is the class in another orientation, e.g. a threefold axis along [111]). The
166
+ * list is closed into a group first, two matrices being equal when no entry differs by `tolerance`
167
+ * (default `EPSILON`) or more. Returns undefined if the operations generate no crystal class (an
168
+ * operation of order 5, a group larger than 48). Throws a RangeError for a matrix that is not
169
+ * orthogonal (within `tolerance`, at least `EPSILON`). The classes `1` and `-1` have no
170
+ * orientation, so they always have setting 1. The first call builds a table of the groups (about
171
+ * 0.1 s; docs/conventions.md, "Point group of a list of operations").
172
+ */
173
+ export declare function pointGroupOf(operations: readonly OperationArgument[], options?: identify.PointGroupOfOptions): IdentifiedPointGroup | undefined;
174
+ /**
175
+ * Each operation of a list described geometrically, in the order of the list: kind, n, the
176
+ * Cartesian axis (rotation or rotoinversion axis, mirror normal) with its first non-zero component,
177
+ * in the order x, y, z, positive, and for n ≥ 3 the sense about that axis. The axes are not named
178
+ * by lattice directions, since the list need not belong to a setting; for a crystal class given by
179
+ * its key, `describeOperations` names them. Throws a RangeError for a matrix that is not orthogonal
180
+ * or not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3,
181
+ * 4, 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`).
182
+ */
183
+ export declare function describeOperationsOf(operations: readonly OperationArgument[], options?: identify.PointGroupOfOptions): readonly CartesianOperationDescription[];
134
184
  /**
135
185
  * Each operation of the crystal class described geometrically, in the order of `operations` for
136
186
  * the same key and options. Axes are named by the symmetry direction they lie along: in the ITC
@@ -144,7 +194,7 @@ export declare function describeOperations(key: PointGroupKey, options?: Setting
144
194
  * positions of the crystal family are listed, also those the symbol of the class leaves out (then
145
195
  * without `symbol`); the triclinic family has none. The directions keep the sign of Table 2.1.3.1
146
196
  * in both conventions; in the Birss convention an axis of `describeOperations` may be reversed, so
147
- * match it to a direction by |dot| = 1, not by identity.
197
+ * match it to a direction whose dot product with it is ±1, not by identity.
148
198
  */
149
199
  export declare function symmetryDirections(key: PointGroupKey, options?: SettingOptions): readonly elements.SymmetryDirection[];
150
200
  /**
@@ -168,6 +218,61 @@ export declare function wyckoffPositions(key: PointGroupKey, options?: SettingOp
168
218
  * `siteSymmetry`.
169
219
  */
170
220
  export declare function wyckoffPositionOf(key: PointGroupKey, direction: Vec3, options?: wyckoff.WyckoffOptions): wyckoff.WyckoffPosition;
221
+ /**
222
+ * The operations of the crystal class in the conventional lattice basis (a, b, c; for the trigonal
223
+ * classes the hexagonal axes), in the order of `operations` for the same setting and convention:
224
+ * integer matrices W acting on the coordinates of a lattice direction [uvw], W = B⁻¹·R·B with the
225
+ * basis B of `latticeBasis` and the Cartesian matrix R of `operations`. They do not depend on the
226
+ * cell angles, so they exist for every family; for the monoclinic and triclinic families a, b, c
227
+ * are taken along x, y, z, as for the Wyckoff positions. In the ITC convention they are the
228
+ * matrices of ITA's general position (6th ed., Table 3.2.3.2). Not orthogonal in general: pass
229
+ * them to no function that takes Cartesian operations (docs/conventions.md, "Lattice basis and
230
+ * orbits").
231
+ */
232
+ export declare function latticeOperations(key: PointGroupKey, options?: SettingOptions): readonly Operation[];
233
+ /**
234
+ * The orbit of a face (hkl) or of a lattice direction [uvw] under a crystal class, exactly, in the
235
+ * lattice basis: the distinct faces (directions), in the order in which the operations reach them
236
+ * (so in the ITC convention the given face first), each with the indices of the operations that map
237
+ * the given one onto it. A face transforms with the inverse transpose of a lattice operation,
238
+ * h' = W⁻ᵀ·h, a direction with the operation itself, u' = W·u. The number of entries is the
239
+ * multiplicity of the face (direction). Throws a RangeError unless exactly one of `hkl` and `uvw` is
240
+ * given, as three integers not all zero (hexagonal axes: three indices, without i).
241
+ */
242
+ export declare function orbit(key: PointGroupKey, indices: {
243
+ readonly hkl: Hkl;
244
+ }, options?: SettingOptions): readonly orbits.FaceOrbitEntry[];
245
+ export declare function orbit(key: PointGroupKey, indices: {
246
+ readonly uvw: Uvw;
247
+ }, options?: SettingOptions): readonly orbits.DirectionOrbitEntry[];
248
+ export declare function orbit(key: PointGroupKey, indices: {
249
+ readonly hkl: Hkl;
250
+ } | {
251
+ readonly uvw: Uvw;
252
+ }, options?: SettingOptions): readonly orbits.FaceOrbitEntry[] | readonly orbits.DirectionOrbitEntry[];
253
+ /**
254
+ * The orbit of a direction (any non-zero vector, Cartesian, e.g. a face normal) under a list of
255
+ * operations, for instance those of a distorted crystal: the images of its unit vector under each
256
+ * operation, coinciding images merged (closer than `tolerance`, default `EPSILON`, as for
257
+ * `siteSymmetry`), in the order in which the operations reach them, each with the indices of the
258
+ * operations that map the direction there. The list is taken as it is, not closed into a group.
259
+ * Throws a RangeError for a zero vector and for a matrix that is not orthogonal.
260
+ */
261
+ export declare function orbitOf(operations: readonly OperationArgument[], direction: Vec3, options?: orbits.OrbitOptions): readonly orbits.OrbitPole[];
262
+ /**
263
+ * The 47 crystal forms of ITA Table 3.2.1.3 (6th ed., pp. 724–726) with ITA's numbers, English
264
+ * names, numbers of faces and eigensymmetries: `CRYSTAL_FORM_TYPES[n - 1]` is form n. Each
265
+ * crystal form of `crystalForms` names its form by this number (docs/conventions.md, "Crystal
266
+ * forms").
267
+ */
268
+ export declare const CRYSTAL_FORM_TYPES: readonly forms.CrystalFormType[];
269
+ /**
270
+ * The crystal forms of a crystal class, as ITA 6th ed. Table 3.2.3.2 prints them: for each Wyckoff
271
+ * position (general position first) its basic form (two for the cubic faces (hhl) of -43m and
272
+ * m-3m), then its limiting forms. In the ITC convention
273
+ * only, like the Wyckoff positions (docs/conventions.md, "Crystal forms").
274
+ */
275
+ export declare function crystalForms(key: PointGroupKey, options?: SettingOptions): readonly forms.CrystalForm[];
171
276
  /**
172
277
  * The form of a tensor under a crystal class in the requested setting (default: the default
173
278
  * setting of the convention, `'itc'` unless given). The tensor is given by its specification or by
@@ -1 +1 @@
1
- {"version":3,"file":"crystalClasses.d.ts","sourceRoot":"","sources":["../src/crystalClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEtH,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,IA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,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,kBAAkB,GAAG,kBAAkB,GAClD,MAAM,EAAE,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAEpF;AAED,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,aAAa,GAAG,kBAAkB,EAAE,CAE1E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAE5G;AAED,uEAAuE;AACvE,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,GAAG,kBAAkB,EAAE,CAGlG"}
@@ -13,6 +13,9 @@
13
13
  import * as elements from './pointGroups/elements.js';
14
14
  import * as groups from './pointGroups/pointGroups.js';
15
15
  import * as properties from './pointGroups/properties.js';
16
+ import * as forms from './pointGroups/crystalForms.js';
17
+ import * as identify from './pointGroups/identify.js';
18
+ import * as orbits from './pointGroups/orbits.js';
16
19
  import * as wyckoff from './pointGroups/wyckoff.js';
17
20
  import * as site from './siteSymmetry.js';
18
21
  import { TENSOR_PROPERTIES as ALL_TENSOR_PROPERTIES } from './tensors/propertyTable.js';
@@ -178,6 +181,35 @@ export function isCentrosymmetricOf(operations) {
178
181
  export function isChiralOf(operations) {
179
182
  return properties.isChiralOf(unitary(operations));
180
183
  }
184
+ /**
185
+ * The crystal class generated by a list of Cartesian operations, for instance those left after
186
+ * distorting a crystal: its key, and the setting whose operations it equals in the frame of symcrys
187
+ * (absent if the group is the class in another orientation, e.g. a threefold axis along [111]). The
188
+ * list is closed into a group first, two matrices being equal when no entry differs by `tolerance`
189
+ * (default `EPSILON`) or more. Returns undefined if the operations generate no crystal class (an
190
+ * operation of order 5, a group larger than 48). Throws a RangeError for a matrix that is not
191
+ * orthogonal (within `tolerance`, at least `EPSILON`). The classes `1` and `-1` have no
192
+ * orientation, so they always have setting 1. The first call builds a table of the groups (about
193
+ * 0.1 s; docs/conventions.md, "Point group of a list of operations").
194
+ */
195
+ export function pointGroupOf(operations, options) {
196
+ return identify.pointGroupOf(unitary(operations), options);
197
+ }
198
+ /**
199
+ * Each operation of a list described geometrically, in the order of the list: kind, n, the
200
+ * Cartesian axis (rotation or rotoinversion axis, mirror normal) with its first non-zero component,
201
+ * in the order x, y, z, positive, and for n ≥ 3 the sense about that axis. The axes are not named
202
+ * by lattice directions, since the list need not belong to a setting; for a crystal class given by
203
+ * its key, `describeOperations` names them. Throws a RangeError for a matrix that is not orthogonal
204
+ * or not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3,
205
+ * 4, 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`).
206
+ */
207
+ export function describeOperationsOf(operations, options) {
208
+ return Object.freeze(identify.describeOperationsOf(unitary(operations), options).map((d) => {
209
+ const { timeReversal: _timeReversal, ...rest } = d;
210
+ return Object.freeze(rest);
211
+ }));
212
+ }
181
213
  // --- symmetry elements -----------------------------------------------------------------------------
182
214
  /**
183
215
  * Each operation of the crystal class described geometrically, in the order of `operations` for
@@ -200,7 +232,7 @@ export function describeOperations(key, options) {
200
232
  * positions of the crystal family are listed, also those the symbol of the class leaves out (then
201
233
  * without `symbol`); the triclinic family has none. The directions keep the sign of Table 2.1.3.1
202
234
  * in both conventions; in the Birss convention an axis of `describeOperations` may be reversed, so
203
- * match it to a direction by |dot| = 1, not by identity.
235
+ * match it to a direction whose dot product with it is ±1, not by identity.
204
236
  */
205
237
  export function symmetryDirections(key, options) {
206
238
  return elements.symmetryDirections(classKey(key), options);
@@ -236,6 +268,53 @@ export function wyckoffPositions(key, options) {
236
268
  export function wyckoffPositionOf(key, direction, options) {
237
269
  return wyckoff.wyckoffPositionOf(classKey(key), direction, options);
238
270
  }
271
+ // --- lattice basis and orbits ---------------------------------------------------------------------
272
+ /**
273
+ * The operations of the crystal class in the conventional lattice basis (a, b, c; for the trigonal
274
+ * classes the hexagonal axes), in the order of `operations` for the same setting and convention:
275
+ * integer matrices W acting on the coordinates of a lattice direction [uvw], W = B⁻¹·R·B with the
276
+ * basis B of `latticeBasis` and the Cartesian matrix R of `operations`. They do not depend on the
277
+ * cell angles, so they exist for every family; for the monoclinic and triclinic families a, b, c
278
+ * are taken along x, y, z, as for the Wyckoff positions. In the ITC convention they are the
279
+ * matrices of ITA's general position (6th ed., Table 3.2.3.2). Not orthogonal in general: pass
280
+ * them to no function that takes Cartesian operations (docs/conventions.md, "Lattice basis and
281
+ * orbits").
282
+ */
283
+ export function latticeOperations(key, options) {
284
+ return matricesOnly(orbits.latticeOperations(classKey(key), options));
285
+ }
286
+ export function orbit(key, indices, options) {
287
+ return orbits.orbit(classKey(key), indices, options);
288
+ }
289
+ /**
290
+ * The orbit of a direction (any non-zero vector, Cartesian, e.g. a face normal) under a list of
291
+ * operations, for instance those of a distorted crystal: the images of its unit vector under each
292
+ * operation, coinciding images merged (closer than `tolerance`, default `EPSILON`, as for
293
+ * `siteSymmetry`), in the order in which the operations reach them, each with the indices of the
294
+ * operations that map the direction there. The list is taken as it is, not closed into a group.
295
+ * Throws a RangeError for a zero vector and for a matrix that is not orthogonal.
296
+ */
297
+ export function orbitOf(operations, direction, options) {
298
+ checkUnitary(operations);
299
+ return orbits.orbitOf(operations, direction, options);
300
+ }
301
+ // --- crystal forms ---------------------------------------------------------------------------------
302
+ /**
303
+ * The 47 crystal forms of ITA Table 3.2.1.3 (6th ed., pp. 724–726) with ITA's numbers, English
304
+ * names, numbers of faces and eigensymmetries: `CRYSTAL_FORM_TYPES[n - 1]` is form n. Each
305
+ * crystal form of `crystalForms` names its form by this number (docs/conventions.md, "Crystal
306
+ * forms").
307
+ */
308
+ export const CRYSTAL_FORM_TYPES = forms.CRYSTAL_FORM_TYPES;
309
+ /**
310
+ * The crystal forms of a crystal class, as ITA 6th ed. Table 3.2.3.2 prints them: for each Wyckoff
311
+ * position (general position first) its basic form (two for the cubic faces (hhl) of -43m and
312
+ * m-3m), then its limiting forms. In the ITC convention
313
+ * only, like the Wyckoff positions (docs/conventions.md, "Crystal forms").
314
+ */
315
+ export function crystalForms(key, options) {
316
+ return forms.crystalForms(classKey(key), options);
317
+ }
239
318
  // --- tensors ---------------------------------------------------------------------------------------
240
319
  /**
241
320
  * The form of a tensor under a crystal class in the requested setting (default: the default
@@ -1 +1 @@
1
- {"version":3,"file":"crystalClasses.js","sourceRoot":"","sources":["../src/crystalClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExF,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAGnD,MAAM,YAAY,GAChB,sHAAsH,CAAC;AAmEzH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAC5C,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC;KAClC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,KAAK,GAAG,CAAC;KAC5C,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;IAC9C,IAAI;IACJ,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,EA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AAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAClG,CAAC"}
package/dist/index.d.ts CHANGED
@@ -13,6 +13,9 @@ export { LATTICE_SYMMETRY_DIRECTIONS, type Uvw } from './symmetryDirections.js';
13
13
  export type { Axis, DirectionElements, OperationKind, SymmetryDirection } from './pointGroups/elements.js';
14
14
  export type { SiteSymmetry, SiteSymmetryOptions } from './siteSymmetry.js';
15
15
  export type { Hkl, WyckoffOptions, WyckoffPosition } from './pointGroups/wyckoff.js';
16
+ export type { CrystalForm, CrystalFormType } from './pointGroups/crystalForms.js';
17
+ export type { DirectionOrbitEntry, FaceOrbitEntry, OrbitOptions, OrbitPole } from './pointGroups/orbits.js';
18
+ export type { CartesianAxis, PointGroupOfOptions } from './pointGroups/identify.js';
16
19
  export type { IntrinsicSymmetry, TensorForm, TensorParity, TensorRank } from './tensors/tensorForm.js';
17
- export { POINT_GROUP_KEYS, TENSOR_PROPERTIES, allowedProperties, allowedPropertiesOf, allowsProperty, allowsPropertyOf, describeOperations, findPointGroup, generators, holohedry, isCentrosymmetricOf, isChiralOf, isPointGroupKey, operations, pointGroup, pointGroups, rotateTensor, settings, siteSymmetry, symbol, symmetryDirections, tensorForm, tensorFormOf, wyckoffPositionOf, wyckoffPositions, type Operation, type OperationDescription, type PointGroup, type PointGroupInSetting, type TensorProperty, type TensorPropertyName, type TensorSpec, } from './crystalClasses.js';
20
+ export { CRYSTAL_FORM_TYPES, POINT_GROUP_KEYS, TENSOR_PROPERTIES, allowedProperties, allowedPropertiesOf, allowsProperty, allowsPropertyOf, crystalForms, describeOperations, describeOperationsOf, findPointGroup, generators, holohedry, isCentrosymmetricOf, isChiralOf, isPointGroupKey, latticeOperations, operations, orbit, orbitOf, pointGroup, pointGroupOf, pointGroups, rotateTensor, settings, siteSymmetry, symbol, symmetryDirections, tensorForm, tensorFormOf, wyckoffPositionOf, wyckoffPositions, type CartesianOperationDescription, type IdentifiedPointGroup, type Operation, type OperationDescription, type PointGroup, type PointGroupInSetting, type TensorProperty, type TensorPropertyName, type TensorSpec, } from './crystalClasses.js';
18
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,KAAK,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAChF,YAAY,EAAE,IAAI,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC3G,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,YAAY,EAAE,GAAG,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACrF,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEvG,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,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iB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,KAAK,EACL,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,UAAU,GAChB,MAAM,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -8,5 +8,5 @@
8
8
  export { VERSION } from './version.js';
9
9
  export { crystalFamily, latticeBasis, } from './lattice.js';
10
10
  export { LATTICE_SYMMETRY_DIRECTIONS } from './symmetryDirections.js';
11
- export { POINT_GROUP_KEYS, TENSOR_PROPERTIES, allowedProperties, allowedPropertiesOf, allowsProperty, allowsPropertyOf, describeOperations, findPointGroup, generators, holohedry, isCentrosymmetricOf, isChiralOf, isPointGroupKey, operations, pointGroup, pointGroups, rotateTensor, settings, siteSymmetry, symbol, symmetryDirections, tensorForm, tensorFormOf, wyckoffPositionOf, wyckoffPositions, } from './crystalClasses.js';
11
+ export { CRYSTAL_FORM_TYPES, POINT_GROUP_KEYS, TENSOR_PROPERTIES, allowedProperties, allowedPropertiesOf, allowsProperty, allowsPropertyOf, crystalForms, describeOperations, describeOperationsOf, findPointGroup, generators, holohedry, isCentrosymmetricOf, isChiralOf, isPointGroupKey, latticeOperations, operations, orbit, orbitOf, pointGroup, pointGroupOf, pointGroups, rotateTensor, settings, siteSymmetry, symbol, symmetryDirections, tensorForm, tensorFormOf, wyckoffPositionOf, wyckoffPositions, } from './crystalClasses.js';
12
12
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EACL,aAAa,EACb,YAAY,GAIb,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,2BAA2B,EAAY,MAAM,yBAAyB,CAAC;AAMhF,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GAQjB,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EACL,aAAa,EACb,YAAY,GAIb,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,2BAA2B,EAAY,MAAM,yBAAyB,CAAC;AAShF,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,KAAK,EACL,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GAUjB,MAAM,qBAAqB,CAAC"}
package/dist/lattice.d.ts CHANGED
@@ -3,7 +3,9 @@
3
3
  * of symcrys (docs/conventions.md, "Cartesian frame").
4
4
  */
5
5
  import type { Mat3 } from './linalg.js';
6
+ /** One of the seven crystal systems. */
6
7
  export type CrystalSystem = 'triclinic' | 'monoclinic' | 'orthorhombic' | 'tetragonal' | 'trigonal' | 'hexagonal' | 'cubic';
8
+ /** One of the six crystal families: the trigonal and the hexagonal system form the hexagonal family. */
7
9
  export type CrystalFamily = 'triclinic' | 'monoclinic' | 'orthorhombic' | 'tetragonal' | 'hexagonal' | 'cubic';
8
10
  /** The crystal family of a crystal system: trigonal and hexagonal form the hexagonal family. */
9
11
  export declare function crystalFamily(system: CrystalSystem): CrystalFamily;
@@ -11,12 +13,14 @@ export declare function crystalFamily(system: CrystalSystem): CrystalFamily;
11
13
  export type FixedAngleFamily = 'orthorhombic' | 'tetragonal' | 'hexagonal' | 'cubic';
12
14
  /**
13
15
  * The conventional basis vectors a, b, c as the **columns** of a Cartesian matrix, with unit edge
14
- * lengths (a frozen array, shared between calls). Hexagonal family (hexagonal axes): x ∥ a, z ∥ c, y = z × x, so b points at 120° from a.
16
+ * lengths. Hexagonal family (hexagonal axes): x ∥ a, z ∥ c, y = z × x, so b points at 120° from a.
15
17
  * Orthorhombic, tetragonal, cubic: x ∥ a, y ∥ b, z ∥ c.
16
18
  *
17
19
  * The edge lengths are set to 1 because the symmetry directions of these families, and so the
18
20
  * point operations, do not depend on them. For a direction [uvw] that is not a symmetry direction,
19
21
  * scale the columns by the real edge lengths first.
22
+ *
23
+ * @remarks The matrix is frozen and shared between calls.
20
24
  */
21
25
  export declare function latticeBasis(family: FixedAngleFamily): Mat3;
22
26
  //# sourceMappingURL=lattice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lattice.d.ts","sourceRoot":"","sources":["../src/lattice.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,aAAa,GACvB,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;AAElG,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;AAE/G,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAElE;AAED,yGAAyG;AACzG,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;AAoBrF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAW3D"}
1
+ {"version":3,"file":"lattice.d.ts","sourceRoot":"","sources":["../src/lattice.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,wCAAwC;AACxC,MAAM,MAAM,aAAa,GACvB,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;AAElG,wGAAwG;AACxG,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;AAE/G,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAElE;AAED,yGAAyG;AACzG,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;AAoBrF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAW3D"}
package/dist/lattice.js CHANGED
@@ -21,12 +21,14 @@ const HEXAGONAL = frozen([
21
21
  ]);
22
22
  /**
23
23
  * The conventional basis vectors a, b, c as the **columns** of a Cartesian matrix, with unit edge
24
- * lengths (a frozen array, shared between calls). Hexagonal family (hexagonal axes): x ∥ a, z ∥ c, y = z × x, so b points at 120° from a.
24
+ * lengths. Hexagonal family (hexagonal axes): x ∥ a, z ∥ c, y = z × x, so b points at 120° from a.
25
25
  * Orthorhombic, tetragonal, cubic: x ∥ a, y ∥ b, z ∥ c.
26
26
  *
27
27
  * The edge lengths are set to 1 because the symmetry directions of these families, and so the
28
28
  * point operations, do not depend on them. For a direction [uvw] that is not a symmetry direction,
29
29
  * scale the columns by the real edge lengths first.
30
+ *
31
+ * @remarks The matrix is frozen and shared between calls.
30
32
  */
31
33
  export function latticeBasis(family) {
32
34
  switch (family) {
@@ -1 +1 @@
1
- {"version":3,"file":"lattice.js","sourceRoot":"","sources":["../src/lattice.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,gGAAgG;AAChG,MAAM,UAAU,aAAa,CAAC,MAAqB;IACjD,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC;AACtD,CAAC;AAKD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAE9B,sGAAsG;AACtG,MAAM,MAAM,GAAG,CAAC,CAA6B,EAAQ,EAAE,CACrD,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAoB,CAAC;AAEvE,MAAM,WAAW,GAAG,MAAM,CAAC;IACzB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,CAAC,E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CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,MAAM,CAAC;IACvB,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;IACZ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IACZ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,MAAwB;IACnD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,WAAW;YACd,OAAO,SAAS,CAAC;QACnB,KAAK,cAAc,CAAC;QACpB,KAAK,YAAY,CAAC;QAClB,KAAK,OAAO;YACV,OAAO,WAAW,CAAC;QACrB;YACE,MAAM,IAAI,UAAU,CAAC,uDAAuD,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClG,CAAC;AACH,CAAC"}
@@ -21,6 +21,7 @@ import type { PointGroupKey as ClassKey, MagneticPointGroupKey, PointGroup as Po
21
21
  export type CrystalClassKey = ClassKey;
22
22
  /** The key of a magnetic point group: a crystal class (white group), a grey or a black-and-white group. */
23
23
  export type PointGroupKey = MagneticPointGroupKey;
24
+ /** A magnetic point group with the properties that are fixed by its operations (docs/conventions.md, "Properties"). */
24
25
  export type PointGroup<K extends PointGroupKey = PointGroupKey> = PointGroupOf<K>;
25
26
  /** A point group in a given setting. */
26
27
  export type PointGroupInSetting = PointGroupInSettingOf<PointGroupKey>;
@@ -29,6 +30,8 @@ export { holohedry, isCentrosymmetricOf, isChiralOf } from './pointGroups/proper
29
30
  export { LATTICE_SYMMETRY_DIRECTIONS, type Uvw } from './symmetryDirections.js';
30
31
  export { describeOperations, symmetryDirections, type Axis, type DirectionElements, type OperationDescription, type OperationKind, type SymmetryDirection, } from './pointGroups/elements.js';
31
32
  export { siteSymmetry, type SiteSymmetry, type SiteSymmetryOptions } from './siteSymmetry.js';
33
+ export { describeOperationsOf, pointGroupOf, type CartesianAxis, type CartesianOperationDescription, type IdentifiedPointGroup, type PointGroupOfOptions, } from './pointGroups/identify.js';
34
+ export { latticeOperations, orbit, orbitOf, type DirectionOrbitEntry, type FaceOrbitEntry, type OrbitOptions, type OrbitPole, } from './pointGroups/orbits.js';
32
35
  export { rotateTensor, tensorForm, tensorFormOf, type IntrinsicSymmetry, type TensorForm, type TensorParity, type TensorRank, type TensorSpec, type TimeParity, } from './tensors/tensorForm.js';
33
36
  export { TENSOR_PROPERTIES, type TensorProperty, type TensorPropertyName } from './tensors/propertyTable.js';
34
37
  export { allowedProperties, allowedPropertiesOf, allowsProperty, allowsPropertyOf, } from './tensors/tensorProperties.js';
@@ -1 +1 @@
1
- {"version":3,"file":"magnetic.d.ts","sourceRoot":"","sources":["../src/magnetic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EACL,aAAa,EACb,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,aAAa,IAAI,QAAQ,EACzB,qBAAqB,EACrB,UAAU,IAAI,YAAY,EAC1B,mBAAmB,IAAI,qBAAqB,EAC7C,MAAM,8BAA8B,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AACvC,2GAA2G;AAC3G,MAAM,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAClD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAClF,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,aAAa,CAA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ACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,KAAK,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC7G,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,GACjB,MAAM,+BAA+B,CAAC"}
package/dist/magnetic.js CHANGED
@@ -16,6 +16,8 @@ export { holohedry, isCentrosymmetricOf, isChiralOf } from './pointGroups/proper
16
16
  export { LATTICE_SYMMETRY_DIRECTIONS } from './symmetryDirections.js';
17
17
  export { describeOperations, symmetryDirections, } from './pointGroups/elements.js';
18
18
  export { siteSymmetry } from './siteSymmetry.js';
19
+ export { describeOperationsOf, pointGroupOf, } from './pointGroups/identify.js';
20
+ export { latticeOperations, orbit, orbitOf, } from './pointGroups/orbits.js';
19
21
  export { rotateTensor, tensorForm, tensorFormOf, } from './tensors/tensorForm.js';
20
22
  export { TENSOR_PROPERTIES } from './tensors/propertyTable.js';
21
23
  export { allowedProperties, allowedPropertiesOf, allowsProperty, allowsPropertyOf, } from './tensors/tensorProperties.js';
@@ -1 +1 @@
1
- {"version":3,"file":"magnetic.js","sourceRoot":"","sources":["../src/magnetic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC,OAAO,EACL,aAAa,EACb,YAAY,GAIb,MAAM,cAAc,CAAC;AAoBtB,OAAO,EACL,yBAAyB,IAAI,gBAAgB,EAC7C,sBAAsB,IAAI,cAAc,EACxC,UAAU,EACV,uBAAuB,IAAI,eAAe,EAC1C,mBAAmB,IAAI,WAAW,EAClC,UAAU,EACV,UAAU,EACV,QAAQ,EACR,MAAM,GAMP,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAY,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GAMnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAA+C,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EACL,YAAY,EACZ,UAAU,EACV,YAAY,GAOb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAgD,MAAM,4BAA4B,CAAC;AAC7G,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,GACjB,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"magnetic.js","sourceRoot":"","sources":["../src/magnetic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC,OAAO,EACL,aAAa,EACb,YAAY,GAIb,MAAM,cAAc,CAAC;AAqBtB,OAAO,EACL,yBAAyB,IAAI,gBAAgB,EAC7C,sBAAsB,IAAI,cAAc,EACxC,UAAU,EACV,uBAAuB,IAAI,eAAe,EAC1C,mBAAmB,IAAI,WAAW,EAClC,UAAU,EACV,UAAU,EACV,QAAQ,EACR,MAAM,GAMP,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAY,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GAMnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAA+C,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EACL,oBAAoB,EACpB,YAAY,GAKb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,KAAK,EACL,OAAO,GAKR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,UAAU,EACV,YAAY,GAOb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAgD,MAAM,4BAA4B,CAAC;AAC7G,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,GACjB,MAAM,+BAA+B,CAAC"}
@@ -8,7 +8,9 @@ import { type Mat3 } from './linalg.js';
8
8
  * combined with time reversal if `timeReversal` is true (a primed operation).
9
9
  */
10
10
  export interface Operation {
11
+ /** The orthogonal Cartesian 3×3 matrix, rows first. */
11
12
  readonly matrix: Mat3;
13
+ /** True if the operation is combined with time reversal (a primed operation). */
12
14
  readonly timeReversal: boolean;
13
15
  }
14
16
  /** No point group has more than 48 operations (96 with time reversal); a closure beyond this is a data error. */
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAsD,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAG5F;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,OAAO,CA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