@crystallography/space-groups
v2.2.1
Published
List of space groups with symetry codes
Downloads
9
Maintainers
Readme
@crystallography/space-groups
Crystallography: Space Groups list;
Include following clases:
- SpaceGroup
- SpaceGroupData (json with information)
How to use:
import { SpaceGroup } from 'space-groups';
const sg = SpaceGroup.getByHMName('P -1');
console.log(sg.id); // 2
console.log(sg.hermannMauguin); // P -1
console.log(sg.hallSymbol); // -P 1
console.log(sg.symetryList); // [ 'x,y,z', '-x,-y,-z' ]
console.log(sg.representativeOperations); // 1
console.log(sg.getCrystalSystem()); // Triclinic
Commands:
- Build project:
npm run build