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/crystalClasses.d.ts
CHANGED
|
@@ -10,28 +10,37 @@
|
|
|
10
10
|
* Everything is computed by the modules that serve both entry points; this module checks what
|
|
11
11
|
* comes in and leaves time reversal out of what goes back.
|
|
12
12
|
*/
|
|
13
|
-
import type { CrystalSystem } from './lattice.js';
|
|
13
|
+
import type { CrystalSystem, LatticeSystem } from './lattice.js';
|
|
14
14
|
import type { Mat3, Vec3 } from './linalg.js';
|
|
15
15
|
import * as elements from './pointGroups/elements.js';
|
|
16
|
-
import
|
|
16
|
+
import * as groups from './pointGroups/pointGroups.js';
|
|
17
|
+
import type { PointGroupKey, Setting, SettingOptions, SymbolOptions } from './pointGroups/pointGroups.js';
|
|
17
18
|
import * as forms from './pointGroups/crystalForms.js';
|
|
18
19
|
import * as identify from './pointGroups/identify.js';
|
|
19
20
|
import * as orbits from './pointGroups/orbits.js';
|
|
20
21
|
import * as wyckoff from './pointGroups/wyckoff.js';
|
|
21
|
-
import type { Hkl } from './pointGroups/wyckoff.js';
|
|
22
22
|
import * as cell from './cell.js';
|
|
23
23
|
import * as site from './siteSymmetry.js';
|
|
24
|
-
import type { Uvw } from './symmetryDirections.js';
|
|
25
24
|
import type { TensorPropertyName as MagneticTensorPropertyName } from './tensors/propertyTable.js';
|
|
26
|
-
import
|
|
27
|
-
|
|
25
|
+
import * as voigtNotation from './tensors/voigt.js';
|
|
26
|
+
import type { IntrinsicSymmetry, TensorForm, TensorKind, TensorRank } from './tensors/tensorForm.js';
|
|
27
|
+
import type { ToleranceOptions } from './tolerances.js';
|
|
28
|
+
/**
|
|
29
|
+
* A point operation of a crystal class in a setting: ITA's matrix W in the lattice basis of the
|
|
30
|
+
* setting (`matrix`, integer, acting on the coordinates of a lattice direction [uvw]; the coordinate
|
|
31
|
+
* triplets of ITA's general position are its rows) and the same operation as an orthogonal Cartesian
|
|
32
|
+
* matrix (`cartesian`: rotation, rotoinversion, mirror, inversion; R = B·W·B⁻¹ with the basis B of
|
|
33
|
+
* the setting). docs/conventions.md, "Operations".
|
|
34
|
+
*/
|
|
28
35
|
export interface Operation {
|
|
29
|
-
/**
|
|
36
|
+
/** ITA's matrix W in the lattice basis of the setting, integer, rows first. */
|
|
30
37
|
readonly matrix: Mat3;
|
|
38
|
+
/** The orthogonal Cartesian 3×3 matrix, rows first. */
|
|
39
|
+
readonly cartesian: Mat3;
|
|
31
40
|
}
|
|
32
41
|
/**
|
|
33
42
|
* A crystal class with the properties that are fixed by its operations. None of them depends on
|
|
34
|
-
* the setting
|
|
43
|
+
* the setting (docs/conventions.md, "Properties").
|
|
35
44
|
*/
|
|
36
45
|
export interface PointGroup {
|
|
37
46
|
/** The key (docs/conventions.md, "Keys"). */
|
|
@@ -44,8 +53,12 @@ export interface PointGroup {
|
|
|
44
53
|
readonly centrosymmetric: boolean;
|
|
45
54
|
/** Polar (pyroelectric class): some direction is left unchanged by every operation. */
|
|
46
55
|
readonly polar: boolean;
|
|
47
|
-
/**
|
|
48
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Enantiomorphic: proper rotations only. ITA § 3.2.2.1.3 (p. 738): "All these terms
|
|
58
|
+
* [enantiomorphism, enantiomerism, chirality, dissymmetry] refer to the same symmetry restriction,
|
|
59
|
+
* the absence of improper rotations (rotoinversions, rotoreflections)".
|
|
60
|
+
*/
|
|
61
|
+
readonly enantiomorphic: boolean;
|
|
49
62
|
/** The Laue class: the centrosymmetric crystal class generated by the class and the inversion. */
|
|
50
63
|
readonly laueClass: PointGroupKey;
|
|
51
64
|
}
|
|
@@ -63,23 +76,32 @@ export interface TensorSpec {
|
|
|
63
76
|
/** Number of indices, 0 to 4. */
|
|
64
77
|
readonly rank: TensorRank;
|
|
65
78
|
/** `'polar'` or `'axial'`: whether an improper operation changes the sign (factor det R). */
|
|
66
|
-
readonly
|
|
79
|
+
readonly kind: TensorKind;
|
|
67
80
|
/** The index symmetry of the tensor. */
|
|
68
81
|
readonly intrinsic: IntrinsicSymmetry;
|
|
69
82
|
}
|
|
70
83
|
/**
|
|
71
|
-
* An operation as a caller may pass it
|
|
72
|
-
*
|
|
73
|
-
*
|
|
84
|
+
* An operation as a caller may pass it to a function that computes with Cartesian matrices: its
|
|
85
|
+
* Cartesian matrix (`cartesian`; other fields, such as `matrix`, are not read), so that the
|
|
86
|
+
* operations of `operations` can be passed as they are. `timeReversal: false` is accepted, so that
|
|
87
|
+
* an operation of the magnetic API without time reversal can be handed on from plain JavaScript;
|
|
88
|
+
* with `timeReversal: true` it is refused, at compile time and at run time.
|
|
74
89
|
*/
|
|
75
|
-
type OperationArgument =
|
|
90
|
+
type OperationArgument = {
|
|
91
|
+
/** The orthogonal Cartesian 3×3 matrix, rows first. */
|
|
92
|
+
readonly cartesian: Mat3;
|
|
76
93
|
/** Accepted if false; an operation with time reversal belongs to the magnetic API. */
|
|
77
94
|
readonly timeReversal?: false;
|
|
78
95
|
};
|
|
79
|
-
/**
|
|
96
|
+
/** An operation as a caller may pass it to `residualOperations`: its matrix W in the lattice basis. */
|
|
97
|
+
type CellOperationArgument = cell.CellOperation & {
|
|
98
|
+
/** Accepted if false; an operation with time reversal belongs to the magnetic API. */
|
|
99
|
+
readonly timeReversal?: false;
|
|
100
|
+
};
|
|
101
|
+
/** A tensor specification as a caller may pass it; `timeParity: 'even'` is accepted, `'odd'` refused. */
|
|
80
102
|
type TensorSpecArgument = TensorSpec & {
|
|
81
|
-
/** Accepted if `'
|
|
82
|
-
readonly timeParity?: '
|
|
103
|
+
/** Accepted if `'even'`; a time-odd tensor belongs to the magnetic API. */
|
|
104
|
+
readonly timeParity?: 'even';
|
|
83
105
|
};
|
|
84
106
|
/** A named property: the tensor that describes it, what it is and where it is defined. */
|
|
85
107
|
export interface TensorProperty {
|
|
@@ -106,48 +128,66 @@ export declare function pointGroup(key: PointGroupKey): PointGroup;
|
|
|
106
128
|
/** All 32 crystal classes, in the order of `POINT_GROUP_KEYS` (by crystal system, as in ITA). */
|
|
107
129
|
export declare function pointGroups(): readonly PointGroup[];
|
|
108
130
|
/**
|
|
109
|
-
* Finds a crystal class by a
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* the
|
|
116
|
-
*
|
|
131
|
+
* Finds a crystal class by a symbol, read tolerantly.
|
|
132
|
+
* It reads, spaces ignored (#96; docs/conventions.md, "Reading symbols"): the key; the short or
|
|
133
|
+
* full symbol of a setting (`312`, `1 1 2`); a Schoenflies symbol, ITA's or ITC Vol. D's (`D3`,
|
|
134
|
+
* `C3i`, `S6`); Birss's cubic symbols without the overbar on the 3 (`m3m`). A symbol that names
|
|
135
|
+
* several settings (the key `32`, which is also the symbol of the setting with rhombohedral axes;
|
|
136
|
+
* `2` for unique axis b, c and a; any Schoenflies symbol) gives the standard (ITC default) setting,
|
|
137
|
+
* unless the options `axes` or `uniqueAxis` choose another, as the headlines of ITA name the
|
|
138
|
+
* settings (the option `axes` set to `'rhombohedral'` for the key `32`).
|
|
139
|
+
*
|
|
140
|
+
* Spellings: the overbar as `-`, `−`, a combining overbar or `¯` after the digit (`m3̄m`), `bar3` (also with a backslash and braces, as in LaTeX);
|
|
141
|
+
* Schoenflies subscripts also as Unicode or LaTeX subscripts (`C₃ᵥ`, `C_{3v}`). Returns `undefined` if nothing matches,
|
|
142
|
+
* also for the symbol of a magnetic group with time reversal; a value that is not a string, and a
|
|
143
|
+
* symbol that names several groups, are a RangeError (the latter lists the groups).
|
|
117
144
|
*/
|
|
118
|
-
export declare function findPointGroup(
|
|
119
|
-
/** The settings of a crystal class, with symbols and the
|
|
120
|
-
export declare function settings(key: PointGroupKey
|
|
145
|
+
export declare function findPointGroup(symbol: string, options?: groups.AxesOptions): PointGroupInSetting | undefined;
|
|
146
|
+
/** The settings of a crystal class, with their symbols and the ITC default. */
|
|
147
|
+
export declare function settings(key: PointGroupKey): readonly Setting[];
|
|
121
148
|
/**
|
|
122
|
-
* All operations of the crystal class in the requested setting (default: the
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
149
|
+
* All operations of the crystal class in the requested setting (default: the ITC default setting),
|
|
150
|
+
* in ITA's order: identity first, then as ITA numbers the general position (docs/conventions.md,
|
|
151
|
+
* "Order of the operations"). Each operation is ITA's matrix W in the lattice basis of the setting
|
|
152
|
+
* (`matrix`) with the same operation as a Cartesian matrix (`cartesian`; docs/conventions.md,
|
|
153
|
+
* "Operations").
|
|
126
154
|
*/
|
|
127
155
|
export declare function operations(key: PointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
128
156
|
/**
|
|
129
|
-
* Generators of the crystal class in the requested setting (docs/conventions.md, "Generators")
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* the identity, as in birss-app).
|
|
157
|
+
* Generators of the crystal class in the requested setting (docs/conventions.md, "Generators"):
|
|
158
|
+
* ITA's selected generators in printed order, without the identity and ITA's lattice translations,
|
|
159
|
+
* so the list is empty for `1`; for the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a), those of setting 1
|
|
160
|
+
* carried into their frame.
|
|
134
161
|
*/
|
|
135
162
|
export declare function generators(key: PointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
136
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* A symbol of the crystal class in the requested setting, as ITA writes it (Tables 3.2.1.2 and
|
|
165
|
+
* 3.2.3.2: `321`, `C3i`; docs/conventions.md, "Symbols").
|
|
166
|
+
*/
|
|
137
167
|
export declare function symbol(key: PointGroupKey, options?: SymbolOptions): string;
|
|
138
168
|
export { holohedry } from './pointGroups/properties.js';
|
|
169
|
+
/**
|
|
170
|
+
* The lattice systems of a crystal class: those whose lattices it can act on (ITA § 1.3.4.4.2 and
|
|
171
|
+
* Table 1.3.4.1, p. 39). One for every class but the trigonal ones, which belong to the hexagonal
|
|
172
|
+
* (hP) or the rhombohedral (hR) lattice system depending on the basis, so they give both,
|
|
173
|
+
* `['hexagonal', 'rhombohedral']`. The holohedry of each is `holohedry(latticeSystem)`. Throws a
|
|
174
|
+
* RangeError for an unknown key.
|
|
175
|
+
*/
|
|
176
|
+
export declare function latticeSystems(key: PointGroupKey): readonly LatticeSystem[];
|
|
139
177
|
/**
|
|
140
178
|
* True if the group generated by `operations` contains the inversion, e.g. for the operations of a
|
|
141
|
-
* distorted crystal.
|
|
142
|
-
* `pointGroup(key).centrosymmetric`. Throws a
|
|
179
|
+
* distorted crystal. The list is closed into a group within the tolerance and made exact first, as
|
|
180
|
+
* `tensorFormOf` does. For a crystal class, read `pointGroup(key).centrosymmetric`. Throws a
|
|
181
|
+
* RangeError as `tensorFormOf`.
|
|
143
182
|
*/
|
|
144
|
-
export declare function isCentrosymmetricOf(operations: readonly OperationArgument[]): boolean;
|
|
183
|
+
export declare function isCentrosymmetricOf(operations: readonly OperationArgument[], options?: ToleranceOptions): boolean;
|
|
145
184
|
/**
|
|
146
|
-
* True if the group generated by `operations` is
|
|
147
|
-
* class, read `pointGroup(key).
|
|
148
|
-
* `allowsPropertyOf(operations, 'pyroelectric')`. Throws a RangeError for
|
|
185
|
+
* True if the group generated by `operations` is enantiomorphic: proper rotations only (ITA
|
|
186
|
+
* § 3.2.2.1.3). For a crystal class, read `pointGroup(key).enantiomorphic`. Polar is the named property `'pyroelectric'`:
|
|
187
|
+
* `allowsPropertyOf(operations, 'pyroelectric')`. Throws a RangeError for an operation without an
|
|
188
|
+
* orthogonal Cartesian matrix (`cartesian`; within the tolerance).
|
|
149
189
|
*/
|
|
150
|
-
export declare function
|
|
190
|
+
export declare function isEnantiomorphicOf(operations: readonly OperationArgument[], options?: ToleranceOptions): boolean;
|
|
151
191
|
/** The crystal class of a list of operations: its key, and the setting if the operations are exactly those of one. */
|
|
152
192
|
export interface IdentifiedPointGroup {
|
|
153
193
|
/** The key of the crystal class the operations generate. */
|
|
@@ -166,36 +206,36 @@ export type CartesianOperationDescription = Omit<identify.CartesianOperationDesc
|
|
|
166
206
|
* (absent if the group is the class in another orientation, e.g. a threefold axis along [111]). The
|
|
167
207
|
* list is closed into a group first, two matrices being equal when no entry differs by `tolerance`
|
|
168
208
|
* (default `EPSILON`) or more. Returns undefined if the operations generate no crystal class (an
|
|
169
|
-
* operation of order 5, a group larger than 48). Throws a RangeError for
|
|
170
|
-
* orthogonal (within `tolerance`, at least `EPSILON`). The classes `1` and `-1` have no
|
|
209
|
+
* operation of order 5, a group larger than 48). Throws a RangeError for an operation without an orthogonal Cartesian matrix (`cartesian`; within `tolerance`, at least `EPSILON`). The classes `1` and `-1` have no
|
|
171
210
|
* orientation, so they always have setting 1. The first call builds a table of the groups (about
|
|
172
211
|
* 0.1 s; docs/conventions.md, "Point group of a list of operations").
|
|
173
212
|
*/
|
|
174
|
-
export declare function pointGroupOf(operations: readonly OperationArgument[], options?:
|
|
213
|
+
export declare function pointGroupOf(operations: readonly OperationArgument[], options?: ToleranceOptions): IdentifiedPointGroup | undefined;
|
|
175
214
|
/**
|
|
176
215
|
* Each operation of a list described geometrically, in the order of the list: kind, n, the
|
|
177
216
|
* Cartesian axis (rotation or rotoinversion axis, mirror normal) with its first non-zero component,
|
|
178
217
|
* in the order x, y, z, positive, and for n ≥ 3 the sense about that axis. The axes are not named
|
|
179
218
|
* by lattice directions, since the list need not belong to a setting; for a crystal class given by
|
|
180
|
-
* its key, `describeOperations` names them. Throws a RangeError for
|
|
219
|
+
* its key, `describeOperations` names them. Throws a RangeError for an operation without an orthogonal Cartesian matrix (`cartesian`)
|
|
181
220
|
* or not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3,
|
|
182
221
|
* 4, 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`).
|
|
183
222
|
*/
|
|
184
|
-
export declare function describeOperationsOf(operations: readonly OperationArgument[], options?:
|
|
223
|
+
export declare function describeOperationsOf(operations: readonly OperationArgument[], options?: ToleranceOptions): readonly CartesianOperationDescription[];
|
|
185
224
|
/**
|
|
186
225
|
* Each operation of the crystal class described geometrically, in the order of `operations` for
|
|
187
|
-
* the same key and options.
|
|
188
|
-
*
|
|
189
|
-
*
|
|
226
|
+
* the same key and options. An axis lies along a symmetry direction and has the sign of the
|
|
227
|
+
* operation's Seitz symbol (ITA 6th ed., Tables 1.4.2.1–1.4.2.3, p. 52), e.g. [1, 1, 0] for 2₁₁₀ in
|
|
228
|
+
* the hexagonal family, where ITA Table 2.1.3.1 lists [1̄, 1̄, 0]; for n ≥ 3 the sign fixes what the
|
|
229
|
+
* sense refers to.
|
|
190
230
|
*/
|
|
191
231
|
export declare function describeOperations(key: PointGroupKey, options?: SettingOptions): readonly OperationDescription[];
|
|
192
232
|
/**
|
|
193
|
-
* The positions of the full Hermann–Mauguin symbol in the requested
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* without `symbol`); the triclinic family has none.
|
|
197
|
-
*
|
|
198
|
-
*
|
|
233
|
+
* The positions of the full Hermann–Mauguin symbol in the requested setting, each with its
|
|
234
|
+
* symmetry directions (ITA Table 2.1.3.1) and the symmetry elements along them. All positions of the
|
|
235
|
+
* crystal family are listed (for rhombohedral axes the two of that row of the table), also those the
|
|
236
|
+
* symbol of the class leaves out (then without `symbol`); the triclinic family has none. A direction
|
|
237
|
+
* has the sign of ITA Table 2.1.3.1, the axis of an operation along it that of its Seitz symbol, so
|
|
238
|
+
* the two are parallel and may be opposite: match them by direction, up to sign.
|
|
199
239
|
*/
|
|
200
240
|
export declare function symmetryDirections(key: PointGroupKey, options?: SettingOptions): readonly elements.SymmetryDirection[];
|
|
201
241
|
/**
|
|
@@ -204,73 +244,59 @@ export declare function symmetryDirections(key: PointGroupKey, options?: Setting
|
|
|
204
244
|
* fixing the direction within the tolerance are closed under the products found in the list and
|
|
205
245
|
* the direction is set onto their fixed space, repeated until stable, so that for a group the
|
|
206
246
|
* result is a subgroup and the set direction lies exactly on its elements. For a list that is not a
|
|
207
|
-
* group, `multiplicity` may not be an integer.
|
|
208
|
-
*
|
|
247
|
+
* group, `multiplicity` may not be an integer. Each operation is read by its Cartesian matrix
|
|
248
|
+
* (`cartesian`). Throws a RangeError for an operation without an orthogonal Cartesian matrix (`cartesian`; within
|
|
209
249
|
* `tolerance`, at least `EPSILON`), for a zero vector, and if the closed operations fix no common
|
|
210
250
|
* direction or do not settle into a group (a tolerance far too large, e.g. 0.5).
|
|
211
251
|
*/
|
|
212
|
-
export declare function
|
|
252
|
+
export declare function siteSymmetryOf(operations: readonly OperationArgument[], direction: Vec3, options?: ToleranceOptions): site.SiteSymmetry;
|
|
253
|
+
/**
|
|
254
|
+
* The site symmetry of a direction (any non-zero Cartesian vector) under a crystal class in a
|
|
255
|
+
* setting: `siteSymmetryOf` applied to `operations(key, options)`, so the indices refer to those
|
|
256
|
+
* operations (#137 C1). Throws a RangeError as `siteSymmetryOf` does.
|
|
257
|
+
*/
|
|
258
|
+
export declare function siteSymmetry(key: PointGroupKey, direction: Vec3, options?: SettingOptions & ToleranceOptions): site.SiteSymmetry;
|
|
213
259
|
/**
|
|
214
260
|
* The Wyckoff positions of a crystal class for directions, as ITA tabulates them (general position
|
|
215
|
-
* first)
|
|
261
|
+
* first) (docs/conventions.md, "Site symmetry and Wyckoff positions").
|
|
216
262
|
*/
|
|
217
263
|
export declare function wyckoffPositions(key: PointGroupKey, options?: SettingOptions): readonly wyckoff.WyckoffPosition[];
|
|
218
264
|
/**
|
|
219
265
|
* The Wyckoff position of a direction (Cartesian) in a crystal class: the position whose site
|
|
220
266
|
* symmetry is conjugate to that of the direction (ITA's definition). `tolerance` as for
|
|
221
|
-
* `
|
|
267
|
+
* `siteSymmetryOf`.
|
|
222
268
|
*/
|
|
223
|
-
export declare function
|
|
269
|
+
export declare function wyckoffPosition(key: PointGroupKey, direction: Vec3, options?: SettingOptions & ToleranceOptions): wyckoff.WyckoffPosition;
|
|
224
270
|
/**
|
|
225
271
|
* The operations of a list that keep the metric of a cell: W with WᵀGW = G, G the metric tensor
|
|
226
|
-
* of `basis`. The operations are integer
|
|
227
|
-
* gives them; the list is taken as it is and the kept operations are the ones of the list, in its
|
|
272
|
+
* of `basis`. The operations are read by `matrix`, the integer matrix W on lattice coordinates, as
|
|
273
|
+
* `operations` gives them; the list is taken as it is and the kept operations are the ones of the list, in its
|
|
228
274
|
* order. The deviation counts relative to the largest entry of G (`tolerance`, default
|
|
229
275
|
* `EPSILON`). An operation combined with time reversal belongs to the magnetic API.
|
|
230
276
|
*/
|
|
231
|
-
export declare function residualOperations<T extends
|
|
232
|
-
/**
|
|
233
|
-
* The operations of the crystal class in the conventional lattice basis (a, b, c; for the trigonal
|
|
234
|
-
* classes the hexagonal axes), in the order of `operations` for the same setting and convention:
|
|
235
|
-
* integer matrices W acting on the coordinates of a lattice direction [uvw], W = B⁻¹·R·B with the
|
|
236
|
-
* basis B of `latticeBasis` and the Cartesian matrix R of `operations`. They do not depend on the
|
|
237
|
-
* cell angles, so they exist for every family; for the monoclinic and triclinic families a, b, c
|
|
238
|
-
* are taken along x, y, z, as for the Wyckoff positions. In the ITC convention they are the
|
|
239
|
-
* matrices of ITA's general position (6th ed., Table 3.2.3.2). Not orthogonal in general: pass
|
|
240
|
-
* them to no function that takes Cartesian operations (docs/conventions.md, "Lattice basis and
|
|
241
|
-
* orbits").
|
|
242
|
-
*/
|
|
243
|
-
export declare function latticeOperations(key: PointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
277
|
+
export declare function residualOperations<T extends CellOperationArgument>(operations: readonly T[], basis: Mat3, options?: ToleranceOptions): readonly T[];
|
|
244
278
|
/**
|
|
245
279
|
* The orbit of a face (hkl) or of a lattice direction [uvw] under a crystal class, exactly, in the
|
|
246
280
|
* lattice basis: the distinct faces (directions), in the order in which the operations reach them
|
|
247
|
-
* (so
|
|
281
|
+
* (so the given face first), each with the indices of the operations that map
|
|
248
282
|
* the given one onto it. A face transforms with the inverse transpose of a lattice operation,
|
|
249
283
|
* h' = W⁻ᵀ·h, a direction with the operation itself, u' = W·u. The number of entries is the
|
|
250
284
|
* multiplicity of the face (direction). Throws a RangeError unless exactly one of `hkl` and `uvw` is
|
|
251
285
|
* given, as three integers not all zero (hexagonal axes: three indices, without i).
|
|
252
286
|
*/
|
|
253
|
-
export declare function orbit(key: PointGroupKey, indices:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
export declare function orbit(key: PointGroupKey, indices: {
|
|
257
|
-
readonly uvw: Uvw;
|
|
258
|
-
}, options?: SettingOptions): readonly orbits.DirectionOrbitEntry[];
|
|
259
|
-
export declare function orbit(key: PointGroupKey, indices: {
|
|
260
|
-
readonly hkl: Hkl;
|
|
261
|
-
} | {
|
|
262
|
-
readonly uvw: Uvw;
|
|
263
|
-
}, options?: SettingOptions): readonly orbits.FaceOrbitEntry[] | readonly orbits.DirectionOrbitEntry[];
|
|
287
|
+
export declare function orbit(key: PointGroupKey, indices: orbits.FaceIndices, options?: SettingOptions): readonly orbits.FaceOrbitEntry[];
|
|
288
|
+
export declare function orbit(key: PointGroupKey, indices: orbits.DirectionIndices, options?: SettingOptions): readonly orbits.DirectionOrbitEntry[];
|
|
289
|
+
export declare function orbit(key: PointGroupKey, indices: orbits.FaceIndices | orbits.DirectionIndices, options?: SettingOptions): readonly orbits.FaceOrbitEntry[] | readonly orbits.DirectionOrbitEntry[];
|
|
264
290
|
/**
|
|
265
291
|
* The orbit of a direction (any non-zero vector, Cartesian, e.g. a face normal) under a list of
|
|
266
292
|
* operations, for instance those of a distorted crystal: the images of its unit vector under each
|
|
267
293
|
* operation, coinciding images merged (closer than `tolerance`, default `EPSILON`, as for
|
|
268
|
-
* `
|
|
294
|
+
* `siteSymmetryOf`), in the order in which the operations reach them, each with the indices of the
|
|
269
295
|
* operations that map the direction there. The list is taken as it is, not closed into a group.
|
|
270
|
-
* Throws a RangeError for a zero vector and for
|
|
296
|
+
* Throws a RangeError for a zero vector and for an operation without an orthogonal Cartesian matrix (`cartesian`; within
|
|
271
297
|
* `tolerance`, at least `EPSILON`).
|
|
272
298
|
*/
|
|
273
|
-
export declare function orbitOf(operations: readonly OperationArgument[], direction: Vec3, options?:
|
|
299
|
+
export declare function orbitOf(operations: readonly OperationArgument[], direction: Vec3, options?: ToleranceOptions): readonly orbits.OrbitPole[];
|
|
274
300
|
/**
|
|
275
301
|
* The 47 crystal forms of ITA Table 3.2.1.3 (6th ed., pp. 724–726) with ITA's numbers, English
|
|
276
302
|
* names, numbers of faces and eigensymmetries: `CRYSTAL_FORM_TYPES[n - 1]` is form n. Each
|
|
@@ -281,50 +307,77 @@ export declare const CRYSTAL_FORM_TYPES: readonly forms.CrystalFormType[];
|
|
|
281
307
|
/**
|
|
282
308
|
* The crystal forms of a crystal class, as ITA 6th ed. Table 3.2.3.2 prints them: for each Wyckoff
|
|
283
309
|
* position (general position first) its basic form (two for the cubic faces (hhl) of -43m and
|
|
284
|
-
* m-3m), then its limiting forms.
|
|
285
|
-
* only, like the Wyckoff positions (docs/conventions.md, "Crystal forms").
|
|
310
|
+
* m-3m), then its limiting forms (docs/conventions.md, "Crystal forms").
|
|
286
311
|
*/
|
|
287
312
|
export declare function crystalForms(key: PointGroupKey, options?: SettingOptions): readonly forms.CrystalForm[];
|
|
288
313
|
/**
|
|
289
|
-
* The form of a tensor under a crystal class in the requested setting (default: the default
|
|
290
|
-
* setting
|
|
291
|
-
*
|
|
292
|
-
* through the setting: the same setting index gives the same form in both conventions
|
|
293
|
-
* (docs/conventions.md, "Tensors").
|
|
314
|
+
* The form of a tensor under a crystal class in the requested setting (default: the ITC default
|
|
315
|
+
* setting). The tensor is given by its specification or by the name of a property in
|
|
316
|
+
* `TENSOR_PROPERTIES` (`'piezoelectric'`; docs/conventions.md, "Tensors").
|
|
294
317
|
*/
|
|
295
318
|
export declare function tensorForm(key: PointGroupKey, spec: TensorSpecArgument | TensorPropertyName, options?: SettingOptions): TensorForm;
|
|
296
319
|
/**
|
|
297
320
|
* The form of a tensor under the group generated by `operations`, e.g. the site symmetry of a
|
|
298
321
|
* surface normal (`siteSymmetry`) or the operations of a distorted crystal. The tensor is given by
|
|
299
|
-
* its specification or by the name of a property in `TENSOR_PROPERTIES`.
|
|
300
|
-
* Cartesian
|
|
301
|
-
*
|
|
322
|
+
* its specification or by the name of a property in `TENSOR_PROPERTIES`. Each operation is read by
|
|
323
|
+
* its Cartesian matrix (`cartesian`), which must be orthogonal. The list is closed into a group
|
|
324
|
+
* within the tolerance, and that group is made exact before the form is computed, so that matrices
|
|
325
|
+
* with rounding errors (e.g. rounded to 6 decimals) give the form of the exact group, with its
|
|
326
|
+
* number of free parameters (docs/conventions.md, "Tolerances"). Throws a RangeError for an
|
|
327
|
+
* operation without an orthogonal Cartesian matrix (`cartesian`; within the tolerance) and for
|
|
328
|
+
* operations that generate no finite group within the tolerance.
|
|
302
329
|
*/
|
|
303
|
-
export declare function tensorFormOf(operations: readonly OperationArgument[], spec: TensorSpecArgument | TensorPropertyName): TensorForm;
|
|
330
|
+
export declare function tensorFormOf(operations: readonly OperationArgument[], spec: TensorSpecArgument | TensorPropertyName, options?: ToleranceOptions): TensorForm;
|
|
304
331
|
/**
|
|
305
|
-
* The
|
|
332
|
+
* The tensor `tensor` in a frame rotated by the orthogonal
|
|
306
333
|
* matrix `rotation`: t′_{i…} = f·Σ R_{ia}…R_{…}·t_{a…}, with f = det(R) for an axial tensor and 1
|
|
307
334
|
* for a polar one. To express a tensor in the frame of a surface, pass the matrix whose rows are
|
|
308
335
|
* the new axes in the old frame. The kind of tensor is given by its specification or by the name
|
|
309
|
-
* of a property in `TENSOR_PROPERTIES`.
|
|
336
|
+
* of a property in `TENSOR_PROPERTIES`. Throws a RangeError for a rotation that is not orthogonal
|
|
337
|
+
* within the tolerance (per matrix entry of RᵀR).
|
|
338
|
+
*/
|
|
339
|
+
export declare function rotateTensor(tensor: readonly number[], rotation: Mat3, spec: TensorSpecArgument | TensorPropertyName, options?: ToleranceOptions): readonly number[];
|
|
340
|
+
/**
|
|
341
|
+
* A tensor in Voigt's two-index notation (ITC Vol. D (2013) § 1.1.4.10, pp. 24–27): each contracted
|
|
342
|
+
* index pair ij becomes α = 1…6 for 11, 22, 33, 23, 31, 12 (eq. (1.1.4.6)), and a component with
|
|
343
|
+
* α = 4, 5, 6 is the tensor component times the factor of its pair (`factors`). A symmetric tensor of
|
|
344
|
+
* rank 2 gives 6 components, one of rank 3 symmetric in its last pair a 3 × 6 matrix (d_iα), in its
|
|
345
|
+
* first pair a 6 × 3 matrix (e_αk), one of rank 4 a 6 × 6 matrix (s_αβ, c_αβ). Throws a RangeError for a specification
|
|
346
|
+
* without a symmetric index pair, factors that are missing or not one 1 or 2 per pair, and a tensor
|
|
347
|
+
* that lacks the index symmetry of its specification (within the tolerance, relative to its largest
|
|
348
|
+
* component).
|
|
349
|
+
*
|
|
350
|
+
* @remarks The tensor is flat, 3^rank components, as `tensorForm` gives a basis tensor.
|
|
351
|
+
*/
|
|
352
|
+
export declare function toVoigt(tensor: readonly number[], spec: TensorSpecArgument | TensorPropertyName, options?: voigtNotation.VoigtOptions): readonly number[] | readonly (readonly number[])[];
|
|
353
|
+
/**
|
|
354
|
+
* The tensor of a Voigt array (`toVoigt` in reverse): each tensor component is the Voigt component
|
|
355
|
+
* of its index pairs over the factors of the pairs, so that the tensor has the index symmetry of its
|
|
356
|
+
* specification. Throws a RangeError for a Voigt array of
|
|
357
|
+
* the wrong shape, and for one that is no tensor of the specification (for rank 4 with interchangeable
|
|
358
|
+
* pairs a 6 × 6 matrix that is not symmetric, for a totally symmetric tensor one whose
|
|
359
|
+
* components do not agree), within the tolerance relative to its largest component.
|
|
360
|
+
*
|
|
361
|
+
* @remarks The tensor is flat, 3^rank components, as `tensorForm` gives a basis tensor.
|
|
310
362
|
*/
|
|
311
|
-
export declare function
|
|
363
|
+
export declare function fromVoigt(voigt: readonly number[] | readonly (readonly number[])[], spec: TensorSpecArgument | TensorPropertyName, options?: voigtNotation.VoigtOptions): readonly number[];
|
|
312
364
|
/**
|
|
313
365
|
* True if the crystal class allows the named property, e.g. `allowsProperty('-6m2',
|
|
314
366
|
* 'piezoelectric')`: the tensor that describes it (`TENSOR_PROPERTIES`) has a non-zero form under
|
|
315
367
|
* the class. Symmetry only allows a property; whether a crystal shows it is a question of the
|
|
316
|
-
* material. It does not depend on setting
|
|
368
|
+
* material. It does not depend on the setting. Throws a RangeError for an unknown key or
|
|
317
369
|
* name.
|
|
318
370
|
*/
|
|
319
371
|
export declare function allowsProperty(key: PointGroupKey, name: TensorPropertyName): boolean;
|
|
320
372
|
/** The named properties the crystal class allows, in the order of `TENSOR_PROPERTIES`. */
|
|
321
|
-
export declare function allowedProperties(key: PointGroupKey): TensorPropertyName[];
|
|
373
|
+
export declare function allowedProperties(key: PointGroupKey): readonly TensorPropertyName[];
|
|
322
374
|
/**
|
|
323
375
|
* True if the group generated by `operations` allows the named property, e.g. for the site
|
|
324
|
-
* symmetry of a surface normal or the operations of a distorted crystal. The
|
|
325
|
-
*
|
|
376
|
+
* symmetry of a surface normal or the operations of a distorted crystal. The operations are read
|
|
377
|
+
* and closed as `tensorFormOf` reads them, within the tolerance, and it throws a RangeError as
|
|
378
|
+
* `tensorFormOf` does.
|
|
326
379
|
*/
|
|
327
|
-
export declare function allowsPropertyOf(operations: readonly OperationArgument[], name: TensorPropertyName): boolean;
|
|
328
|
-
/** The named properties the group generated by `operations` allows.
|
|
329
|
-
export declare function allowedPropertiesOf(operations: readonly OperationArgument[]): TensorPropertyName[];
|
|
380
|
+
export declare function allowsPropertyOf(operations: readonly OperationArgument[], name: TensorPropertyName, options?: ToleranceOptions): boolean;
|
|
381
|
+
/** The named properties the group generated by `operations` allows. Reads the operations as `allowsPropertyOf`. */
|
|
382
|
+
export declare function allowedPropertiesOf(operations: readonly OperationArgument[], options?: ToleranceOptions): readonly TensorPropertyName[];
|
|
330
383
|
//# sourceMappingURL=crystalClasses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crystalClasses.d.ts","sourceRoot":"","sources":["../src/crystalClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"crystalClasses.d.ts","sourceRoot":"","sources":["../src/crystalClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OA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