AtomTransformationsMixin

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

Bases: object

Mixin Atom class for performing affine transformations.

Methods

rotate(**kwargs) Rotate Atom position vector.
translate(t[, fix_anchor_point, cartesian]) Translate Atom position vector by Vector t.

Methods Summary

rotate(**kwargs) Rotate Atom position vector.
translate(t[, fix_anchor_point, cartesian]) Translate Atom position vector by Vector t.

Methods Documentation

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

Rotate Atom position vector.

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_point=True, cartesian=True)[source] [edit on github][source]

Translate Atom position vector by Vector t.

Parameters:
  • t (Vector) –
  • fix_anchor_point (bool, optional) –
  • cartesian (bool, optional) –