viperleed.calc.classes.sym_entity.SymPlane
- class viperleed.calc.classes.sym_entity.SymPlane(pos, dr, abt, ty='none', index2=False, collapse=True)[source]
Candidate plane for a symmetry operation. ‘ty’ pre-defines a type (mirror or glide), ‘index2’ allows the (1,2) and (2,1) directions if True, and collapse moves pos into the (0,0) unit cell if True.
Methods
__init__(pos, dr, abt[, ty, index2, collapse])distanceFromOrigin(abt)isEquivalent(pl2, abt[, eps])Checks whether two symmetry planes have the same position and direction (including duplicates in next unit cell)
point_operation([n_dim])Return a matrix for mirroring across this plane.
Attributes
is_glideReturn whether this is a mirror plane.
is_mirrorReturn whether this is a mirror plane.
normalReturn a unit vector normal to this plane (even without perp).