Enum lowdim::Sym2d [−][src]
Expand description
The symmetries of discrete 2d vectors.
These preserve length and the origin, and correspond to multiplication with orthogonal integer matrices. This can be viewed as a concise representation of the orthogonal matrices, conversion is possible via Matrix2d::from.
This is the dihedral group D4, the symmetry group of a square. It consists of four rotations and four reflections.
Variants
R(u8)
Tuple Fields
0: u8Rotates by the given number of right angles to the left.
S(u8)
Tuple Fields
0: u8Reflects by an axis through the origin so that the point (1, 0) is rotated by the given number of right angles to the left.
The axis of reflection then forms an angle of 45 degrees times the given number with the x axis.
Implementations
Returns a vector containing the rotations of the symmetry group.
The rotations are closed under multiplication. That is, they form a subgroup.
Returns true if this a rotation.
Returns true if this a reflection.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sym2d
impl UnwindSafe for Sym2d
Blanket Implementations
Mutably borrows from an owned value. Read more
