AtomsTransformationsMixin

class sknano.core.atoms.mixins.AtomsTransformationsMixin[source] [edit on github][source]

Bases: object

Mixin Atoms class for performing affine transformations.

Methods

rotate(**kwargs) Rotate Atom vectors.
translate(t[, fix_anchor_points, cartesian]) Translate Atom vectors by Vector t.

Methods Summary

rotate(**kwargs) Rotate Atom vectors.
translate(t[, fix_anchor_points, cartesian]) Translate Atom vectors by Vector t.

Methods Documentation

rotate(**kwargs)[source] [edit on github][source]

Rotate Atom vectors.

Parameters:
  • angle (float) –
  • axis (Vector, optional) –
  • anchor_point (Point, optional) –
  • rot_point (Point, optional) –
  • to_vector (from_vector,) –
  • degrees (bool, optional) –
  • transform_matrix (ndarray) –
translate(t, fix_anchor_points=True, cartesian=True)[source] [edit on github][source]

Translate Atom vectors by Vector t.

Parameters:
  • t (Vector) –
  • fix_anchor_points (bool, optional) –