TransformableMixin

class TransformableMixin

A transformable object (subclass of TransformableMixin) is any object that can be transformed by a Transformation.

The exact implementation of this is specified by implementing transform() for each type of accepted transformation.

Additionally, a transformable objects transformable can be transformed by a transformation t by t @ transformable (__rmatmul__ calls transform()).

Methods

transform

Transform this TransformableMixin by a given Transformation.

__rmatmul__(transformation: Transformation) T_co

Computes transformable.transform(t) when performing t @ transformable for a Transformation t and TransformableMixin transformable.

abstract transform(transformation: Transformation) T_co

Transform this TransformableMixin by a given Transformation.