GeometricTransformsMixin

class sknano.core.geometric_regions.GeometricTransformsMixin[source] [edit on github][source]

Bases: object

Mixin class providing methods for applying linear algebra transforms to geometric regions.

Methods

rotate(**kwargs) Rotate GeometricRegion points and vectors.
translate(t[, fix_anchor_points]) Translate GeometricRegion points and vectors by Vector t.

Methods Summary

rotate(**kwargs) Rotate GeometricRegion points and vectors.
translate(t[, fix_anchor_points]) Translate GeometricRegion points and vectors by Vector t.

Methods Documentation

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

Rotate GeometricRegion points and 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=False)[source] [edit on github][source]

Translate GeometricRegion points and vectors by Vector t.

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

See also

sknano.core.math.translate