symcrys 0.10.1 → 0.12.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.
- package/README.md +6 -6
- package/dist/cell.d.ts +19 -16
- package/dist/cell.d.ts.map +1 -1
- package/dist/cell.js +63 -35
- package/dist/cell.js.map +1 -1
- package/dist/checks.d.ts +29 -0
- package/dist/checks.d.ts.map +1 -0
- package/dist/checks.js +79 -0
- package/dist/checks.js.map +1 -0
- package/dist/closure.d.ts +43 -0
- package/dist/closure.d.ts.map +1 -0
- package/dist/closure.js +201 -0
- package/dist/closure.js.map +1 -0
- package/dist/coordinates.d.ts +143 -0
- package/dist/coordinates.d.ts.map +1 -0
- package/dist/coordinates.js +198 -0
- package/dist/coordinates.js.map +1 -0
- package/dist/crystalClasses.d.ts +170 -117
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +190 -121
- package/dist/crystalClasses.js.map +1 -1
- package/dist/freeze.d.ts +7 -0
- package/dist/freeze.d.ts.map +1 -0
- package/dist/freeze.js +15 -0
- package/dist/freeze.js.map +1 -0
- package/dist/index.d.ts +13 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/indices.d.ts +30 -20
- package/dist/indices.d.ts.map +1 -1
- package/dist/indices.js +101 -31
- package/dist/indices.js.map +1 -1
- package/dist/lattice.d.ts +15 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/lattice.js +30 -1
- package/dist/lattice.js.map +1 -1
- package/dist/linalg.d.ts +2 -2
- package/dist/linalg.d.ts.map +1 -1
- package/dist/linalg.js +3 -3
- package/dist/linalg.js.map +1 -1
- package/dist/magnetic.d.ts +14 -10
- package/dist/magnetic.d.ts.map +1 -1
- package/dist/magnetic.js +10 -6
- package/dist/magnetic.js.map +1 -1
- package/dist/notation.d.ts +16 -0
- package/dist/notation.d.ts.map +1 -0
- package/dist/notation.js +66 -0
- package/dist/notation.js.map +1 -0
- package/dist/operations.d.ts +40 -26
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +48 -60
- package/dist/operations.js.map +1 -1
- package/dist/plane.d.ts +297 -80
- package/dist/plane.d.ts.map +1 -1
- package/dist/plane.js +289 -94
- package/dist/plane.js.map +1 -1
- package/dist/pointGroups/crystalForms.d.ts +6 -21
- package/dist/pointGroups/crystalForms.d.ts.map +1 -1
- package/dist/pointGroups/crystalForms.js +9 -16
- package/dist/pointGroups/crystalForms.js.map +1 -1
- package/dist/pointGroups/crystalFormsData.d.ts +4 -1
- package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
- package/dist/pointGroups/crystalFormsData.js +64 -1
- package/dist/pointGroups/crystalFormsData.js.map +1 -1
- package/dist/pointGroups/elements.d.ts +19 -17
- package/dist/pointGroups/elements.d.ts.map +1 -1
- package/dist/pointGroups/elements.js +65 -83
- package/dist/pointGroups/elements.js.map +1 -1
- package/dist/pointGroups/identify.d.ts +10 -18
- package/dist/pointGroups/identify.d.ts.map +1 -1
- package/dist/pointGroups/identify.js +27 -79
- package/dist/pointGroups/identify.js.map +1 -1
- package/dist/pointGroups/itaOrder.d.ts +15 -14
- package/dist/pointGroups/itaOrder.d.ts.map +1 -1
- package/dist/pointGroups/itaOrder.js +116 -94
- package/dist/pointGroups/itaOrder.js.map +1 -1
- package/dist/pointGroups/itcData.d.ts +96 -0
- package/dist/pointGroups/itcData.d.ts.map +1 -0
- package/dist/pointGroups/itcData.js +336 -0
- package/dist/pointGroups/itcData.js.map +1 -0
- package/dist/pointGroups/itcMagneticData.d.ts +55 -0
- package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
- package/dist/pointGroups/itcMagneticData.js +172 -0
- package/dist/pointGroups/itcMagneticData.js.map +1 -0
- package/dist/pointGroups/keys.d.ts +32 -0
- package/dist/pointGroups/keys.d.ts.map +1 -0
- package/dist/pointGroups/keys.js +120 -0
- package/dist/pointGroups/keys.js.map +1 -0
- package/dist/pointGroups/magneticSymbols.d.ts +6 -5
- package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
- package/dist/pointGroups/magneticSymbols.js +15 -12
- package/dist/pointGroups/magneticSymbols.js.map +1 -1
- package/dist/pointGroups/orbits.d.ts +23 -42
- package/dist/pointGroups/orbits.d.ts.map +1 -1
- package/dist/pointGroups/orbits.js +20 -62
- package/dist/pointGroups/orbits.js.map +1 -1
- package/dist/pointGroups/pointGroups.d.ts +145 -68
- package/dist/pointGroups/pointGroups.d.ts.map +1 -1
- package/dist/pointGroups/pointGroups.js +455 -243
- package/dist/pointGroups/pointGroups.js.map +1 -1
- package/dist/pointGroups/properties.d.ts +21 -22
- package/dist/pointGroups/properties.d.ts.map +1 -1
- package/dist/pointGroups/properties.js +40 -37
- package/dist/pointGroups/properties.js.map +1 -1
- package/dist/pointGroups/seitzData.d.ts +26 -0
- package/dist/pointGroups/seitzData.d.ts.map +1 -0
- package/dist/pointGroups/seitzData.js +130 -0
- package/dist/pointGroups/seitzData.js.map +1 -0
- package/dist/pointGroups/shubnikovData.d.ts +11 -0
- package/dist/pointGroups/shubnikovData.d.ts.map +1 -0
- package/dist/pointGroups/shubnikovData.js +101 -0
- package/dist/pointGroups/shubnikovData.js.map +1 -0
- package/dist/pointGroups/wyckoff.d.ts +70 -40
- package/dist/pointGroups/wyckoff.d.ts.map +1 -1
- package/dist/pointGroups/wyckoff.js +98 -91
- package/dist/pointGroups/wyckoff.js.map +1 -1
- package/dist/pointGroups/wyckoffData.d.ts +7 -4
- package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
- package/dist/pointGroups/wyckoffData.js +789 -168
- package/dist/pointGroups/wyckoffData.js.map +1 -1
- package/dist/siteSymmetry.d.ts +8 -16
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js +34 -24
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/spaceGroups/affine.d.ts.map +1 -1
- package/dist/spaceGroups/affine.js +3 -2
- package/dist/spaceGroups/affine.js.map +1 -1
- package/dist/spaceGroups/cell.d.ts +43 -31
- package/dist/spaceGroups/cell.d.ts.map +1 -1
- package/dist/spaceGroups/cell.js +173 -85
- package/dist/spaceGroups/cell.js.map +1 -1
- package/dist/spaceGroups/describe.d.ts +13 -10
- package/dist/spaceGroups/describe.d.ts.map +1 -1
- package/dist/spaceGroups/describe.js +11 -10
- package/dist/spaceGroups/describe.js.map +1 -1
- package/dist/spaceGroups/planeGroupData.d.ts +3 -1
- package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
- package/dist/spaceGroups/planeGroupData.js +25 -8
- package/dist/spaceGroups/planeGroupData.js.map +1 -1
- package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
- package/dist/spaceGroups/planeGroups.js +2 -1
- package/dist/spaceGroups/planeGroups.js.map +1 -1
- package/dist/spaceGroups/planeLattice.d.ts +78 -0
- package/dist/spaceGroups/planeLattice.d.ts.map +1 -0
- package/dist/spaceGroups/planeLattice.js +143 -0
- package/dist/spaceGroups/planeLattice.js.map +1 -0
- package/dist/spaceGroups/planePointGroups.d.ts +6 -2
- package/dist/spaceGroups/planePointGroups.d.ts.map +1 -1
- package/dist/spaceGroups/planePointGroups.js +14 -2
- package/dist/spaceGroups/planePointGroups.js.map +1 -1
- package/dist/spaceGroups/positions.d.ts +48 -19
- package/dist/spaceGroups/positions.d.ts.map +1 -1
- package/dist/spaceGroups/positions.js +166 -67
- package/dist/spaceGroups/positions.js.map +1 -1
- package/dist/spaceGroups/rational.d.ts +18 -0
- package/dist/spaceGroups/rational.d.ts.map +1 -1
- package/dist/spaceGroups/rational.js +58 -0
- package/dist/spaceGroups/rational.js.map +1 -1
- package/dist/tensors/propertyTable.d.ts +3 -1
- package/dist/tensors/propertyTable.d.ts.map +1 -1
- package/dist/tensors/propertyTable.js +17 -10
- package/dist/tensors/propertyTable.js.map +1 -1
- package/dist/tensors/rowEchelon.d.ts +3 -3
- package/dist/tensors/rowEchelon.d.ts.map +1 -1
- package/dist/tensors/rowEchelon.js +4 -4
- package/dist/tensors/rowEchelon.js.map +1 -1
- package/dist/tensors/tensorForm.d.ts +75 -34
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +171 -67
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/tensors/tensorProperties.d.ts +10 -9
- package/dist/tensors/tensorProperties.d.ts.map +1 -1
- package/dist/tensors/tensorProperties.js +22 -12
- package/dist/tensors/tensorProperties.js.map +1 -1
- package/dist/tensors/voigt.d.ts +56 -0
- package/dist/tensors/voigt.d.ts.map +1 -0
- package/dist/tensors/voigt.js +188 -0
- package/dist/tensors/voigt.js.map +1 -0
- package/dist/tolerances.d.ts +56 -1
- package/dist/tolerances.d.ts.map +1 -1
- package/dist/tolerances.js +51 -1
- package/dist/tolerances.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/cell.ts +78 -51
- package/src/checks.ts +84 -0
- package/src/closure.ts +214 -0
- package/src/coordinates.ts +370 -0
- package/src/crystalClasses.ts +271 -157
- package/src/freeze.ts +14 -0
- package/src/index.ts +33 -12
- package/src/indices.ts +102 -42
- package/src/lattice.ts +41 -1
- package/src/linalg.ts +3 -3
- package/src/magnetic.ts +24 -11
- package/src/notation.ts +73 -0
- package/src/operations.ts +78 -71
- package/src/plane.ts +531 -151
- package/src/pointGroups/crystalForms.ts +11 -44
- package/src/pointGroups/crystalFormsData.ts +66 -1
- package/src/pointGroups/elements.ts +82 -92
- package/src/pointGroups/identify.ts +38 -97
- package/src/pointGroups/itaOrder.ts +117 -101
- package/src/pointGroups/itcData.ts +404 -0
- package/src/pointGroups/itcMagneticData.ts +206 -0
- package/src/pointGroups/keys.ts +144 -0
- package/src/pointGroups/magneticSymbols.ts +18 -17
- package/src/pointGroups/orbits.ts +41 -89
- package/src/pointGroups/pointGroups.ts +593 -298
- package/src/pointGroups/properties.ts +44 -40
- package/src/pointGroups/seitzData.ts +147 -0
- package/src/pointGroups/shubnikovData.ts +103 -0
- package/src/pointGroups/wyckoff.ts +137 -112
- package/src/pointGroups/wyckoffData.ts +793 -170
- package/src/siteSymmetry.ts +43 -40
- package/src/spaceGroups/affine.ts +3 -2
- package/src/spaceGroups/cell.ts +227 -116
- package/src/spaceGroups/describe.ts +23 -19
- package/src/spaceGroups/planeGroupData.ts +28 -9
- package/src/spaceGroups/planeGroups.ts +2 -1
- package/src/spaceGroups/planeLattice.ts +208 -0
- package/src/spaceGroups/planePointGroups.ts +23 -3
- package/src/spaceGroups/positions.ts +202 -78
- package/src/spaceGroups/rational.ts +59 -0
- package/src/tensors/propertyTable.ts +26 -14
- package/src/tensors/rowEchelon.ts +4 -3
- package/src/tensors/tensorForm.ts +258 -88
- package/src/tensors/tensorProperties.ts +34 -14
- package/src/tensors/voigt.ts +268 -0
- package/src/tolerances.ts +66 -1
- package/src/version.ts +1 -1
- package/dist/pointGroups/data.d.ts +0 -75
- package/dist/pointGroups/data.d.ts.map +0 -1
- package/dist/pointGroups/data.js +0 -212
- package/dist/pointGroups/data.js.map +0 -1
- package/dist/pointGroups/magneticData.d.ts +0 -66
- package/dist/pointGroups/magneticData.d.ts.map +0 -1
- package/dist/pointGroups/magneticData.js +0 -184
- package/dist/pointGroups/magneticData.js.map +0 -1
- package/dist/spaceGroups/snap.d.ts +0 -20
- package/dist/spaceGroups/snap.d.ts.map +0 -1
- package/dist/spaceGroups/snap.js +0 -103
- package/dist/spaceGroups/snap.js.map +0 -1
- package/src/pointGroups/data.ts +0 -305
- package/src/pointGroups/magneticData.ts +0 -328
- package/src/spaceGroups/snap.ts +0 -121
package/dist/plane.js
CHANGED
|
@@ -9,31 +9,37 @@
|
|
|
9
9
|
* overlap. Functions that take a point take its coordinates in the lattice basis and an optional
|
|
10
10
|
* `tolerance` (docs/conventions.md, "Plane groups").
|
|
11
11
|
*/
|
|
12
|
+
import { TOLERANCE_KEYS, checkOptions, shown } from './checks.js';
|
|
12
13
|
import { describePlaneOperation } from './spaceGroups/describe.js';
|
|
13
|
-
import { planeAsymmetricUnit,
|
|
14
|
+
import { planeAsymmetricUnit, planeElements, planeElementsInBox } from './spaceGroups/cell.js';
|
|
14
15
|
import { toPlain } from './spaceGroups/affine.js';
|
|
15
16
|
import {} from './spaceGroups/planeGroupData.js';
|
|
17
|
+
import { PLANE_FAMILIES, planeBravaisLattice, planeLatticeFromParameters, planeLatticeParameters, planeLaueClass, planeMetricTensor, planeReciprocalBasis, } from './spaceGroups/planeLattice.js';
|
|
18
|
+
import { deepFreeze } from './freeze.js';
|
|
19
|
+
import { changeCoordinates } from './coordinates.js';
|
|
16
20
|
import { PLANE_GROUP_KEYS as GROUP_KEYS, planeGroupEntry, planeGroupGenerators, planeGroupOperations, } from './spaceGroups/planeGroups.js';
|
|
17
21
|
import { PLANE_POINT_GROUP_KEYS, isPlanePointGroupKey, planePointGroupGenerators, planePointGroupOf, planePointGroupOperations, planePointGroupSettingCount, planePointGroupSymbol, planePointGroupSystem, } from './spaceGroups/planePointGroups.js';
|
|
18
|
-
import { planeOrbit,
|
|
19
|
-
import {
|
|
20
|
-
import { parseRational, rational, toNumber } from './spaceGroups/rational.js';
|
|
22
|
+
import { planeMetric, planeOrbit, planeSiteOfPosition, planeWyckoffDistances, planeWyckoffPositionOf, } from './spaceGroups/positions.js';
|
|
23
|
+
import { nearestFraction, parseRational, toNumber } from './spaceGroups/rational.js';
|
|
21
24
|
export { VERSION } from './version.js';
|
|
25
|
+
export { EPSILON } from './tolerances.js';
|
|
26
|
+
import { toleranceOf } from './tolerances.js';
|
|
27
|
+
import { compactSymbol } from './notation.js';
|
|
22
28
|
/** The short symbols of the 17 plane groups, in ITA's order (plane group n at index n − 1). */
|
|
23
29
|
export const PLANE_GROUP_KEYS = Object.freeze([...GROUP_KEYS]);
|
|
24
30
|
/** The keys of the 10 plane point groups, in the order of ITA Table 3.2.1.1. */
|
|
25
31
|
export const POINT_GROUP_KEYS = Object.freeze([...PLANE_POINT_GROUP_KEYS]);
|
|
26
32
|
// ---------------------------------------------------------------------------------------------
|
|
27
33
|
const numbers = (v) => v.map(toNumber);
|
|
28
|
-
function
|
|
34
|
+
function isGroupKey(key) {
|
|
29
35
|
return typeof key === 'string' && GROUP_KEYS.includes(key);
|
|
30
36
|
}
|
|
31
37
|
function unknownKey(key, what = 'plane group or plane point group') {
|
|
32
|
-
throw new RangeError(`Unknown ${what}: ${
|
|
38
|
+
throw new RangeError(`Unknown ${what}: ${shown(key)}`);
|
|
33
39
|
}
|
|
34
40
|
/** The plane group of a key; throws for a point group or an unknown key. */
|
|
35
41
|
function groupKey(key, what) {
|
|
36
|
-
if (
|
|
42
|
+
if (isGroupKey(key))
|
|
37
43
|
return key;
|
|
38
44
|
if (isPlanePointGroupKey(key)) {
|
|
39
45
|
throw new RangeError(`${what} takes the key of a plane group, not of the point group ${key}`);
|
|
@@ -44,24 +50,45 @@ function groupKey(key, what) {
|
|
|
44
50
|
function pointKey(key, what) {
|
|
45
51
|
if (isPlanePointGroupKey(key))
|
|
46
52
|
return key;
|
|
47
|
-
if (
|
|
53
|
+
if (isGroupKey(key)) {
|
|
48
54
|
throw new RangeError(`${what} takes the key of a plane point group; ${key} is a plane group (planeGroup)`);
|
|
49
55
|
}
|
|
50
56
|
return unknownKey(key, 'plane point group');
|
|
51
57
|
}
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
/**
|
|
59
|
+
* The index of the setting that `options` names for a key, or undefined if it names none: an index
|
|
60
|
+
* is passed on (and checked where it is used), a symbol is looked up among the settings of the key.
|
|
61
|
+
*/
|
|
62
|
+
function settingOf(key, options) {
|
|
63
|
+
const setting = options?.setting;
|
|
64
|
+
if (typeof setting !== 'string')
|
|
65
|
+
return setting;
|
|
66
|
+
const wanted = compactSymbol(setting);
|
|
67
|
+
if (isGroupKey(key)) {
|
|
68
|
+
if (wanted === key || wanted === planeGroupEntry(key).fullSymbol)
|
|
69
|
+
return 1;
|
|
70
|
+
throw new RangeError(`The plane group ${key} has no setting ${shown(setting)} (its symbols: ${key}, ${planeGroupEntry(key).fullSymbol})`);
|
|
71
|
+
}
|
|
72
|
+
const symbols = Array.from({ length: planePointGroupSettingCount(key) }, (_, i) => planePointGroupSymbol(key, i + 1));
|
|
73
|
+
const index = symbols.findIndex((s) => s === wanted);
|
|
74
|
+
if (index >= 0)
|
|
75
|
+
return index + 1;
|
|
76
|
+
// The key of a point group with several settings is the symbol of none; it names the default.
|
|
77
|
+
if (wanted === key)
|
|
78
|
+
return 1;
|
|
79
|
+
throw new RangeError(`The plane point group ${key} has no setting ${shown(setting)} (settings: ${symbols.join(', ')})`);
|
|
54
80
|
}
|
|
55
81
|
/** The exact operations for a key: a plane group (setting 1 only) or a point group in a setting. */
|
|
56
82
|
function exact(key, options, generatorsOnly) {
|
|
57
|
-
|
|
58
|
-
|
|
83
|
+
if (isGroupKey(key)) {
|
|
84
|
+
const setting = settingOf(key, options);
|
|
59
85
|
if (setting !== undefined && setting !== 1) {
|
|
60
86
|
throw new RangeError(`The plane group ${key} has no setting ${String(setting)}`);
|
|
61
87
|
}
|
|
62
88
|
return generatorsOnly ? planeGroupGenerators(key) : planeGroupOperations(key);
|
|
63
89
|
}
|
|
64
90
|
if (isPlanePointGroupKey(key)) {
|
|
91
|
+
const setting = settingOf(key, options);
|
|
65
92
|
return generatorsOnly ? planePointGroupGenerators(key, setting) : planePointGroupOperations(key, setting);
|
|
66
93
|
}
|
|
67
94
|
return unknownKey(key);
|
|
@@ -78,40 +105,17 @@ function describe(op) {
|
|
|
78
105
|
const d = describePlaneOperation(op);
|
|
79
106
|
return Object.freeze({
|
|
80
107
|
kind: d.kind,
|
|
81
|
-
|
|
108
|
+
n: d.n,
|
|
82
109
|
...(d.sense ? { sense: d.sense } : {}),
|
|
83
110
|
...(d.translation ? { translation: Object.freeze(numbers(d.translation)) } : {}),
|
|
84
111
|
...(d.location ? { location: Object.freeze(numbers(d.location)) } : {}),
|
|
85
112
|
...(d.direction ? { direction: Object.freeze([...d.direction]) } : {}),
|
|
86
|
-
...(d.
|
|
113
|
+
...(d.axis ? { axis: Object.freeze([...d.axis]) } : {}),
|
|
87
114
|
...(d.glide ? { glide: Object.freeze(numbers(d.glide)) } : {}),
|
|
88
115
|
});
|
|
89
116
|
}
|
|
90
|
-
/** Tolerance for reading an integer or a fraction from a double. */
|
|
91
|
-
const READ_TOLERANCE = 1e-9;
|
|
92
|
-
/** The largest denominator of a translation that `describeOperationsOf` reads. */
|
|
93
|
-
const MAX_DENOMINATOR = 12;
|
|
94
|
-
function fractionOf(value) {
|
|
95
|
-
if (typeof value === 'number' && Number.isFinite(value)) {
|
|
96
|
-
for (let d = 1; d <= MAX_DENOMINATOR; d++) {
|
|
97
|
-
const n = Math.round(value * d);
|
|
98
|
-
if (Math.abs(value * d - n) < READ_TOLERANCE * d)
|
|
99
|
-
return rational(n, d);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
throw new RangeError(`Not within 10⁻⁹ of a translation with a denominator of at most ${MAX_DENOMINATOR}: ${shown(value)}`);
|
|
103
|
-
}
|
|
104
|
-
/** A value for an error message; never throws (BigInt, circular objects). */
|
|
105
|
-
function shown(value) {
|
|
106
|
-
try {
|
|
107
|
-
return JSON.stringify(value) ?? String(value);
|
|
108
|
-
}
|
|
109
|
-
catch {
|
|
110
|
-
return String(value);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
117
|
/** An operation from a caller as an exact operation; throws a RangeError unless it has the shape of a plane operation. */
|
|
114
|
-
function exactOf(op) {
|
|
118
|
+
function exactOf(op, tolerance) {
|
|
115
119
|
const o = op;
|
|
116
120
|
const m = o?.matrix;
|
|
117
121
|
const t = o?.translation;
|
|
@@ -120,12 +124,61 @@ function exactOf(op) {
|
|
|
120
124
|
throw new RangeError(`Not an operation of the plane { matrix (2 × 2), translation (2) }: ${shown(op)}`);
|
|
121
125
|
}
|
|
122
126
|
const matrix = m.map((row) => row.map((v) => {
|
|
123
|
-
if (!(typeof v === 'number' && Math.abs(v - Math.round(v)) <
|
|
127
|
+
if (!(typeof v === 'number' && Math.abs(v - Math.round(v)) < tolerance)) {
|
|
124
128
|
throw new RangeError(`The matrix of a plane operation has integer entries, not ${shown(m)}`);
|
|
125
129
|
}
|
|
126
130
|
return Math.round(v) + 0;
|
|
127
131
|
}));
|
|
128
|
-
return { matrix, translation: t.map(
|
|
132
|
+
return { matrix, translation: t.map((v) => nearestFraction(v, tolerance, 'translation')) };
|
|
133
|
+
}
|
|
134
|
+
/** True if `key` is the key of one of the 17 plane groups (its short symbol, as ITA prints it). */
|
|
135
|
+
export function isPlaneGroupKey(key) {
|
|
136
|
+
return isGroupKey(key);
|
|
137
|
+
}
|
|
138
|
+
/** True if `key` is the key of one of the 10 plane point groups. */
|
|
139
|
+
export function isPointGroupKey(key) {
|
|
140
|
+
return isPlanePointGroupKey(key);
|
|
141
|
+
}
|
|
142
|
+
/** The 17 plane groups, in ITA's order (plane group n at index n − 1). */
|
|
143
|
+
export function planeGroups() {
|
|
144
|
+
return Object.freeze(PLANE_GROUP_KEYS.map((key) => planeGroup(key)));
|
|
145
|
+
}
|
|
146
|
+
/** The 10 plane point groups, in the order of ITA Table 3.2.1.1. */
|
|
147
|
+
export function pointGroups() {
|
|
148
|
+
return Object.freeze(POINT_GROUP_KEYS.map((key) => pointGroup(key)));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Finds a plane group by a symbol: the key (the short symbol, `'pm'`) or the full symbol (`'p1m1'`,
|
|
152
|
+
* `'p 1 m 1'`), spaces ignored (docs/conventions.md, "Reading symbols"). The lattice letter is
|
|
153
|
+
* lower case, as ITA prints it. Gives `undefined` if the symbol names no plane group; throws a
|
|
154
|
+
* RangeError for a value that is not a string.
|
|
155
|
+
*/
|
|
156
|
+
export function findPlaneGroup(symbol) {
|
|
157
|
+
if (typeof symbol !== 'string')
|
|
158
|
+
throw new RangeError(`A symbol is a string, not ${shown(symbol)}`);
|
|
159
|
+
const wanted = compactSymbol(symbol);
|
|
160
|
+
const key = PLANE_GROUP_KEYS.find((k) => k === wanted || planeGroupEntry(k).fullSymbol === wanted);
|
|
161
|
+
return key === undefined ? undefined : Object.freeze({ key });
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Finds a plane point group by a symbol: the key, or the symbol of a setting (`'3m1'`, `'31m'`),
|
|
165
|
+
* spaces ignored; the key `'3m'` gives the default setting 1. Gives `undefined` if the symbol names
|
|
166
|
+
* no plane point group, also for the symbol of a plane group (that is `findPlaneGroup`); throws a
|
|
167
|
+
* RangeError for a value that is not a string.
|
|
168
|
+
*/
|
|
169
|
+
export function findPointGroup(symbol) {
|
|
170
|
+
if (typeof symbol !== 'string')
|
|
171
|
+
throw new RangeError(`A symbol is a string, not ${shown(symbol)}`);
|
|
172
|
+
const wanted = compactSymbol(symbol);
|
|
173
|
+
for (const key of POINT_GROUP_KEYS) {
|
|
174
|
+
for (let i = 1; i <= planePointGroupSettingCount(key); i++) {
|
|
175
|
+
if (planePointGroupSymbol(key, i) === wanted)
|
|
176
|
+
return Object.freeze({ key, setting: i });
|
|
177
|
+
}
|
|
178
|
+
if (key === wanted)
|
|
179
|
+
return Object.freeze({ key, setting: 1 });
|
|
180
|
+
}
|
|
181
|
+
return undefined;
|
|
129
182
|
}
|
|
130
183
|
/** The plane group with this key (short symbol). Throws a RangeError for an unknown key. */
|
|
131
184
|
export function planeGroup(key) {
|
|
@@ -134,19 +187,24 @@ export function planeGroup(key) {
|
|
|
134
187
|
return Object.freeze({
|
|
135
188
|
key: entry.symbol,
|
|
136
189
|
number: entry.number,
|
|
137
|
-
fullSymbol: entry.fullSymbol,
|
|
138
190
|
pointGroup: point.key,
|
|
139
191
|
pointGroupSetting: point.setting,
|
|
140
192
|
crystalSystem: entry.system,
|
|
193
|
+
bravaisLattice: planeBravaisLattice(entry.system, entry.symbol),
|
|
194
|
+
pattersonSymmetry: entry.pattersonSymmetry,
|
|
141
195
|
centring: Object.freeze(entry.centring.map((t) => Object.freeze(t.split(',').map((c) => toNumber(parseRational(c)))))),
|
|
142
196
|
origin: entry.origin,
|
|
143
|
-
order: planeGroupOperations(entry.symbol).length,
|
|
144
197
|
});
|
|
145
198
|
}
|
|
146
199
|
/** The plane point group with this key. Throws a RangeError for an unknown key. */
|
|
147
200
|
export function pointGroup(key) {
|
|
148
201
|
const k = pointKey(key, 'pointGroup');
|
|
149
|
-
return Object.freeze({
|
|
202
|
+
return Object.freeze({
|
|
203
|
+
key: k,
|
|
204
|
+
crystalSystem: planePointGroupSystem(k),
|
|
205
|
+
order: planePointGroupOperations(k).length,
|
|
206
|
+
laueClass: planeLaueClass(k),
|
|
207
|
+
});
|
|
150
208
|
}
|
|
151
209
|
/**
|
|
152
210
|
* The settings of a plane point group: two for `3m` (`3m1`, the default, and `31m`), one for the
|
|
@@ -154,11 +212,35 @@ export function pointGroup(key) {
|
|
|
154
212
|
*/
|
|
155
213
|
export function settings(key) {
|
|
156
214
|
const k = pointKey(key, 'settings');
|
|
157
|
-
return Object.freeze(Array.from({ length: planePointGroupSettingCount(k) }, (_, i) => Object.freeze({ index: i + 1, symbol: planePointGroupSymbol(k, i + 1),
|
|
215
|
+
return Object.freeze(Array.from({ length: planePointGroupSettingCount(k) }, (_, i) => Object.freeze({ index: i + 1, symbol: planePointGroupSymbol(k, i + 1), isDefault: i === 0 })));
|
|
158
216
|
}
|
|
159
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* The symbol of a plane group or a plane point group (#137 F4). In the short form (the default) the
|
|
219
|
+
* Hermann–Mauguin symbol as one word: for a plane group the key (`'p2mg'`, `'pm'`), for a plane
|
|
220
|
+
* point group in a setting `'3m1'` or `'31m'` for `3m`, otherwise the key. In the form `'full'`
|
|
221
|
+
* the full symbol with its positions separated by spaces, as in the other entry points: `'p 1 m 1'`
|
|
222
|
+
* for `pm` (ITA prints `p1m1`), `'p 2 m g'`, `'3 m 1'`; ITA prints no other full symbol for a plane
|
|
223
|
+
* point group (Ch. 3.2, p. 721, and Table 3.2.3.1). A plane group has setting 1 only. Throws a
|
|
224
|
+
* RangeError for an unknown key, setting or form.
|
|
225
|
+
*/
|
|
160
226
|
export function symbol(key, options) {
|
|
161
|
-
|
|
227
|
+
checkOptions(options, ['setting', 'form'], 'symbol');
|
|
228
|
+
const form = options?.form ?? 'short';
|
|
229
|
+
if (form !== 'short' && form !== 'full') {
|
|
230
|
+
throw new RangeError(`Unknown symbol form: ${shown(form)} (short or full)`);
|
|
231
|
+
}
|
|
232
|
+
// Every position of a plane symbol is one character, the lattice letter included.
|
|
233
|
+
const spaced = (text) => (form === 'full' ? [...text].join(' ') : text);
|
|
234
|
+
if (isGroupKey(key)) {
|
|
235
|
+
const setting = settingOf(key, options);
|
|
236
|
+
if (setting !== undefined && setting !== 1) {
|
|
237
|
+
throw new RangeError(`The plane group ${key} has no setting ${shown(setting)}`);
|
|
238
|
+
}
|
|
239
|
+
return spaced(form === 'full' ? planeGroupEntry(key).fullSymbol : key);
|
|
240
|
+
}
|
|
241
|
+
if (!isPlanePointGroupKey(key))
|
|
242
|
+
return unknownKey(key);
|
|
243
|
+
return spaced(planePointGroupSymbol(key, settingOf(key, options)));
|
|
162
244
|
}
|
|
163
245
|
/**
|
|
164
246
|
* The operations of a plane group or a plane point group, in ITA's order, identity first. A plane
|
|
@@ -169,6 +251,7 @@ export function symbol(key, options) {
|
|
|
169
251
|
* or setting.
|
|
170
252
|
*/
|
|
171
253
|
export function operations(key, options) {
|
|
254
|
+
checkOptions(options, ['setting'], 'operations');
|
|
172
255
|
return Object.freeze(exact(key, options, false).map(plain));
|
|
173
256
|
}
|
|
174
257
|
/**
|
|
@@ -177,14 +260,16 @@ export function operations(key, options) {
|
|
|
177
260
|
* generators of its symmorphic plane group. Throws a RangeError for an unknown key or setting.
|
|
178
261
|
*/
|
|
179
262
|
export function generators(key, options) {
|
|
263
|
+
checkOptions(options, ['setting'], 'generators');
|
|
180
264
|
return Object.freeze(exact(key, options, true).map(plain));
|
|
181
265
|
}
|
|
182
266
|
/**
|
|
183
267
|
* Each operation of `operations` (same key and setting) described geometrically, index for index:
|
|
184
|
-
* what it is, its
|
|
268
|
+
* what it is, its n and sense, where its symmetry element lies, its glide part. Throws a
|
|
185
269
|
* RangeError for an unknown key or setting.
|
|
186
270
|
*/
|
|
187
271
|
export function describeOperations(key, options) {
|
|
272
|
+
checkOptions(options, ['setting'], 'describeOperations');
|
|
188
273
|
return Object.freeze(exact(key, options, false).map(describe));
|
|
189
274
|
}
|
|
190
275
|
/**
|
|
@@ -192,16 +277,19 @@ export function describeOperations(key, options) {
|
|
|
192
277
|
* `describeOperations` describes those of a group: for instance a product of operations, an
|
|
193
278
|
* operation shifted by a lattice translation, or the operations of a site symmetry. Each operation is
|
|
194
279
|
* `{ matrix, translation }` as `operations` gives it. Each matrix must have integer entries (within
|
|
195
|
-
*
|
|
196
|
-
* 2, 3, 4 or 6); each
|
|
197
|
-
* 12 (1/3
|
|
198
|
-
* RangeError otherwise
|
|
280
|
+
* the tolerance, per entry) and be the linear part of a crystallographic plane point group
|
|
281
|
+
* (determinant ±1, order 1, 2, 3, 4 or 6); each component of a translation is read as the fraction
|
|
282
|
+
* with a denominator of at most 12 within the tolerance (1/3 from 0.333…), as the translations of
|
|
283
|
+
* `operations` and their products are. Throws a RangeError otherwise, also for a component within
|
|
284
|
+
* the tolerance of two such fractions (which can lie 1/132 apart).
|
|
199
285
|
*/
|
|
200
|
-
export function describeOperationsOf(operations) {
|
|
286
|
+
export function describeOperationsOf(operations, options) {
|
|
287
|
+
checkOptions(options, TOLERANCE_KEYS, 'describeOperationsOf');
|
|
288
|
+
const tolerance = toleranceOf(options, 'operations');
|
|
201
289
|
if (!Array.isArray(operations)) {
|
|
202
290
|
throw new RangeError('describeOperationsOf takes a list of operations { matrix, translation }');
|
|
203
291
|
}
|
|
204
|
-
return Object.freeze(operations.map((op) => describe(exactOf(op))));
|
|
292
|
+
return Object.freeze(operations.map((op) => describe(exactOf(op, tolerance))));
|
|
205
293
|
}
|
|
206
294
|
/**
|
|
207
295
|
* The Wyckoff positions of a plane group as ITA prints them, general position first. Throws a
|
|
@@ -213,13 +301,15 @@ export function wyckoffPositions(key) {
|
|
|
213
301
|
return Object.freeze(entry.wyckoff.map(([multiplicity, letter, siteSymmetry, coordinates]) => Object.freeze({ letter, multiplicity, siteSymmetry, coordinates: Object.freeze([...coordinates]) })));
|
|
214
302
|
}
|
|
215
303
|
/**
|
|
216
|
-
* The site symmetry of a point (lattice basis) under a plane group
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
304
|
+
* The site symmetry of a point (lattice basis) under a plane group, as one notion with its Wyckoff
|
|
305
|
+
* position (#137 F1): the point is set onto the position it lies on within the tolerance
|
|
306
|
+
* (`wyckoffPosition`), and the site symmetry is that of the point there; `point` is the point on the
|
|
307
|
+
* position. Throws a RangeError for an unknown key, a point that is not two finite numbers, or a
|
|
308
|
+
* tolerance outside (0, 1/2).
|
|
220
309
|
*/
|
|
221
310
|
export function siteSymmetry(key, point, options) {
|
|
222
|
-
|
|
311
|
+
checkOptions(options, TOLERANCE_KEYS, 'siteSymmetry');
|
|
312
|
+
const site = planeSiteOfPosition(groupKey(key, 'siteSymmetry'), point, options);
|
|
223
313
|
return Object.freeze({
|
|
224
314
|
operations: Object.freeze([...site.operations]),
|
|
225
315
|
point: Object.freeze([...site.point]),
|
|
@@ -229,11 +319,14 @@ export function siteSymmetry(key, point, options) {
|
|
|
229
319
|
}
|
|
230
320
|
/**
|
|
231
321
|
* The Wyckoff position of a point (lattice basis) under a plane group, as `wyckoffPositions` gives
|
|
232
|
-
* it: the printed position
|
|
233
|
-
*
|
|
322
|
+
* it: the most special printed position whose point set lies within the tolerance of the point,
|
|
323
|
+
* measured per coordinate modulo the lattice, and among positions of equal multiplicity the nearest
|
|
324
|
+
* (the distance of `wyckoffDistances`); the general position always holds the point. Throws a
|
|
325
|
+
* RangeError as `siteSymmetry`.
|
|
234
326
|
*/
|
|
235
|
-
export function
|
|
236
|
-
|
|
327
|
+
export function wyckoffPosition(key, point, options) {
|
|
328
|
+
checkOptions(options, TOLERANCE_KEYS, 'wyckoffPosition');
|
|
329
|
+
const k = groupKey(key, 'wyckoffPosition');
|
|
237
330
|
const { letter } = planeWyckoffPositionOf(k, point, options);
|
|
238
331
|
const found = wyckoffPositions(k).find((w) => w.letter === letter);
|
|
239
332
|
if (!found)
|
|
@@ -241,60 +334,162 @@ export function wyckoffPositionOf(key, point, options) {
|
|
|
241
334
|
return found;
|
|
242
335
|
}
|
|
243
336
|
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* lattice
|
|
337
|
+
* The distance of a point (lattice basis) to every Wyckoff position of a plane group, in the
|
|
338
|
+
* printed order of `wyckoffPositions`, each with the nearest point of the position (#137 F1, #108).
|
|
339
|
+
* The point set of a position is the union of its printed coordinates with every centring and
|
|
340
|
+
* lattice translation: a point, a line or the plane. Without a basis the distance is the larger of
|
|
341
|
+
* the two coordinate differences modulo the lattice, the metric of the tolerance of
|
|
342
|
+
* `wyckoffPosition`; with a basis (columns a, b) it is Euclidean, and the nearest point is the
|
|
343
|
+
* Euclidean nearest one; per coordinate the nearest point of a line need not be unique (on x,0 every x
|
|
344
|
+
* within the distance is as near), and then it is one of them. The basis should be a reduced cell,
|
|
345
|
+
* such as the conventional one: the nearest lattice translate is sought near the rounded
|
|
346
|
+
* coordinates. How to snap a dragged point onto a position (which position wins, within
|
|
347
|
+
* which radius) is the application's choice; this gives the numbers for it. Throws a RangeError for
|
|
348
|
+
* an unknown key, a point that is not two finite numbers, and a basis that is not a non-singular
|
|
349
|
+
* 2 × 2 matrix.
|
|
253
350
|
*/
|
|
254
|
-
export function
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const position = wyckoffPositions(k)[snapped.row];
|
|
261
|
-
return Object.freeze({ ...position, point: Object.freeze([...snapped.point]) });
|
|
351
|
+
export function wyckoffDistances(key, point, options) {
|
|
352
|
+
checkOptions(options, ['basis'], 'wyckoffDistances');
|
|
353
|
+
const k = groupKey(key, 'wyckoffDistances');
|
|
354
|
+
const g = options?.basis === undefined ? undefined : planeMetric(options.basis);
|
|
355
|
+
const positions = wyckoffPositions(k);
|
|
356
|
+
return Object.freeze(planeWyckoffDistances(k, point, g).map((d) => Object.freeze({ ...positions[d.row], point: Object.freeze([...d.point]), distance: d.distance })));
|
|
262
357
|
}
|
|
263
358
|
/**
|
|
264
|
-
* The orbit of a point (lattice basis) under a plane group:
|
|
265
|
-
*
|
|
266
|
-
*
|
|
359
|
+
* The orbit of a point (lattice basis) under a plane group: the images of the point set onto its
|
|
360
|
+
* Wyckoff position (as `siteSymmetry` sets it), each in [0, 1), in the order of the operations that
|
|
361
|
+
* first give them, each with the indices of the operations that map the point there (as the
|
|
362
|
+
* entries of the orbits of the point groups): one entry per coset of the site symmetry, so the
|
|
363
|
+
* first entry holds the operations of `siteSymmetry`. Throws a RangeError as `siteSymmetry`.
|
|
267
364
|
*/
|
|
268
365
|
export function orbit(key, point, options) {
|
|
269
|
-
|
|
366
|
+
checkOptions(options, TOLERANCE_KEYS, 'orbit');
|
|
367
|
+
return Object.freeze(planeOrbit(groupKey(key, 'orbit'), point, options).map((e) => Object.freeze({ point: Object.freeze(e.point), operations: Object.freeze(e.operations) })));
|
|
270
368
|
}
|
|
271
369
|
/**
|
|
272
|
-
* The asymmetric unit of a plane group as ITA prints it
|
|
273
|
-
*
|
|
370
|
+
* The asymmetric unit of a plane group as ITA prints it (#137 F3): the printed inequalities, all of
|
|
371
|
+
* them in printed order (a double inequality and a `min` give one each), and the convex polygon
|
|
372
|
+
* they bound, with its vertices and, per edge, the index of the inequality that holds it. Throws a
|
|
373
|
+
* RangeError for an unknown key.
|
|
274
374
|
*/
|
|
275
375
|
export function asymmetricUnit(key) {
|
|
276
376
|
const unit = planeAsymmetricUnit(groupKey(key, 'asymmetricUnit'));
|
|
277
377
|
return Object.freeze({
|
|
278
|
-
vertices: Object.freeze(unit.vertices.map((v) => Object.freeze(numbers(v)))),
|
|
279
378
|
inequalities: Object.freeze(unit.inequalities.map((q) => Object.freeze([...q]))),
|
|
379
|
+
vertices: Object.freeze(unit.vertices.map((v) => Object.freeze(numbers(v)))),
|
|
380
|
+
edges: Object.freeze([...unit.edges]),
|
|
280
381
|
});
|
|
281
382
|
}
|
|
282
383
|
/**
|
|
283
|
-
* The symmetry elements of a plane group
|
|
284
|
-
*
|
|
285
|
-
*
|
|
384
|
+
* The symmetry elements of a plane group (#137 F2). Without a box, each element once modulo the
|
|
385
|
+
* lattice translations, the centring (1/2, 1/2) included, as ITA describes them (cm: the mirror line
|
|
386
|
+
* 0,y and the glide line 1/4,y): every rotation point in [0, 1)² with the highest n of a rotation
|
|
387
|
+
* about it, and every mirror and glide line, as a point in [0, 1)² and a direction. With a box, all
|
|
388
|
+
* their lattice translates that meet it, boundary included; the lines are not clipped, since
|
|
389
|
+
* clipping is drawing. Throws a RangeError for an unknown key, a box that is not two corners of
|
|
390
|
+
* finite numbers, the first not above or right of the second, and a box with more than a million
|
|
391
|
+
* rotation points.
|
|
286
392
|
*/
|
|
287
|
-
export function symmetryElements(key) {
|
|
288
|
-
|
|
393
|
+
export function symmetryElements(key, options) {
|
|
394
|
+
checkOptions(options, ['box'], 'symmetryElements');
|
|
395
|
+
const k = groupKey(key, 'symmetryElements');
|
|
396
|
+
const box = options?.box;
|
|
397
|
+
let e;
|
|
398
|
+
if (box === undefined)
|
|
399
|
+
e = planeElements(k);
|
|
400
|
+
else {
|
|
401
|
+
const ok = Array.isArray(box) &&
|
|
402
|
+
box.length === 2 &&
|
|
403
|
+
box.every((c) => Array.isArray(c) && c.length === 2 && c.every((v) => typeof v === 'number' && Number.isFinite(v)));
|
|
404
|
+
if (!ok || !(box[0][0] <= box[1][0] && box[0][1] <= box[1][1])) {
|
|
405
|
+
throw new RangeError(`A box is two corners [[x0, y0], [x1, y1]] with x0 <= x1 and y0 <= y1, not ${shown(box)}`);
|
|
406
|
+
}
|
|
407
|
+
e = planeElementsInBox(k, [
|
|
408
|
+
[box[0][0], box[0][1]],
|
|
409
|
+
[box[1][0], box[1][1]],
|
|
410
|
+
]);
|
|
411
|
+
}
|
|
289
412
|
return Object.freeze({
|
|
290
|
-
|
|
413
|
+
rotationPoints: Object.freeze(e.rotationPoints.map((r) => Object.freeze({ n: r.n, point: Object.freeze(numbers(r.point)) }))),
|
|
291
414
|
lines: Object.freeze(e.lines.map((l) => Object.freeze({
|
|
292
415
|
kind: l.kind,
|
|
293
416
|
direction: Object.freeze([...l.direction]),
|
|
294
|
-
|
|
417
|
+
axis: Object.freeze([...l.axis]),
|
|
295
418
|
glide: Object.freeze(numbers(l.glide)),
|
|
296
|
-
|
|
419
|
+
point: Object.freeze(numbers(l.point)),
|
|
297
420
|
}))),
|
|
298
421
|
});
|
|
299
422
|
}
|
|
423
|
+
// --- lattices and cells (#119, #137 G5) ---------------------------------------------------------------
|
|
424
|
+
const PLANE_SYSTEMS = Object.keys(PLANE_FAMILIES);
|
|
425
|
+
const copy = (m) => [
|
|
426
|
+
[m[0][0], m[0][1]],
|
|
427
|
+
[m[1][0], m[1][1]],
|
|
428
|
+
];
|
|
429
|
+
/**
|
|
430
|
+
* The restrictions on the cell parameters of a crystal system of the plane, as ITA 2016 Table
|
|
431
|
+
* 2.1.1.1 (p. 143) gives them for the conventional cell: the parameters to be determined, the pairs
|
|
432
|
+
* of equal parameters, the fixed angles, and the angles conventionally taken non-acute. Throws a
|
|
433
|
+
* RangeError for anything that is not one of the four crystal systems of the plane.
|
|
434
|
+
*/
|
|
435
|
+
export function cellRestrictions(system) {
|
|
436
|
+
if (!PLANE_SYSTEMS.includes(system)) {
|
|
437
|
+
throw new RangeError(`Unknown crystal system of the plane: ${shown(system)} (${PLANE_SYSTEMS.join(', ')})`);
|
|
438
|
+
}
|
|
439
|
+
const r = PLANE_FAMILIES[system].restrictions;
|
|
440
|
+
return deepFreeze({
|
|
441
|
+
parameters: [...r.parameters],
|
|
442
|
+
equal: r.equal.map((pair) => [...pair]),
|
|
443
|
+
angles: { ...r.angles },
|
|
444
|
+
nonAcute: [...r.nonAcute],
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* The Cartesian basis of a plane cell as the columns of a 2 × 2 matrix: a along x, b at γ from a
|
|
449
|
+
* towards +y (right-handed), in the unit of the edge lengths. Throws a RangeError for an edge that is
|
|
450
|
+
* not a positive number and for γ outside (0°, 180°).
|
|
451
|
+
*/
|
|
452
|
+
export function latticeFromParameters(parameters) {
|
|
453
|
+
return deepFreeze(copy(planeLatticeFromParameters(parameters, 'latticeFromParameters')));
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* The parameters a, b, γ of a basis given as the columns of a 2 × 2 Cartesian matrix, independent of
|
|
457
|
+
* its orientation and handedness. Throws a RangeError for a basis that is not a non-singular 2 × 2
|
|
458
|
+
* matrix.
|
|
459
|
+
*/
|
|
460
|
+
export function latticeParameters(basis) {
|
|
461
|
+
return Object.freeze(planeLatticeParameters(basis, 'latticeParameters'));
|
|
462
|
+
}
|
|
463
|
+
/** The metric tensor G = AᵀA of a basis A (columns a, b): g_ij = a_i · a_j. Throws a RangeError for a basis that is not a non-singular 2 × 2 matrix. */
|
|
464
|
+
export function metricTensor(basis) {
|
|
465
|
+
return deepFreeze(copy(planeMetricTensor(basis, 'metricTensor')));
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* The reciprocal basis B = A⁻ᵀ of a basis A (columns a, b) as the columns a*, b*, with
|
|
469
|
+
* a_i · a*_j = δ_ij (no factor 2π). Throws a RangeError for a basis that is not a non-singular 2 × 2
|
|
470
|
+
* matrix.
|
|
471
|
+
*/
|
|
472
|
+
export function reciprocalBasis(basis) {
|
|
473
|
+
return deepFreeze(copy(planeReciprocalBasis(basis, 'reciprocalBasis')));
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Changes the coordinate system of the plane by the pair (P, p) of ITA (6th ed., 2016) § 1.5.1.3
|
|
477
|
+
* (p. 83), with 2 × 2 matrices: the new basis is (a′, b′) = (a, b)·P and the new origin lies at p.
|
|
478
|
+
* Transforms the given quantities by ITA's equations (§ 1.5.2, pp. 83–85): point coordinates
|
|
479
|
+
* x′ = P⁻¹(x − p), vector coefficients [uv]′ = P⁻¹[uv], Miller indices (hk)′ = (hk)P, the metric
|
|
480
|
+
* tensor G′ = PᵀGP, and operations W′ = P⁻¹WP, w′ = P⁻¹(w + (W − I)p); and gives the inverse pair
|
|
481
|
+
* (Q, q) = (P⁻¹, −P⁻¹p). det P may be negative.
|
|
482
|
+
*
|
|
483
|
+
* P, p and the operations are read each number as the simplest fraction within the tolerance
|
|
484
|
+
* (default `EPSILON`; 0.3333333 is 1/3) and transformed exactly, so that every result, the inverse
|
|
485
|
+
* pair included, can be passed back; the other quantities are floating point. P is rational in a
|
|
486
|
+
* change between lattice bases, as in ITA; an irrational P (a rotation by 30°) is read as the
|
|
487
|
+
* nearby fractions, about as exact as the tolerance, and a much smaller tolerance can make the exact
|
|
488
|
+
* products leave the safe integers, a RangeError.
|
|
489
|
+
* A transformed operation is `{ matrix, translation }`. Throws a RangeError for a singular P, a quantity of the
|
|
490
|
+
* wrong shape, an unknown quantity, an operation with det W ≠ ±1, and one whose W′ is not integral.
|
|
491
|
+
*/
|
|
492
|
+
export function changeOfCoordinates(transformation, quantities, options) {
|
|
493
|
+
return deepFreeze(changeCoordinates(2, transformation, quantities, options, 'changeOfCoordinates'));
|
|
494
|
+
}
|
|
300
495
|
//# sourceMappingURL=plane.js.map
|
package/dist/plane.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plane.js","sourceRoot":"","sources":["../src/plane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBA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