10.1.4.15. Transformation¶
Module to implement transformations like scale, rotation and translation.
For resources on transformations see this section.
-
class
Patro.GeometryEngine.Transformation.
AffineTransformation
(obj, transformation_type=<TransformationType.Generic: 9>)[source]¶ Bases:
Patro.GeometryEngine.Transformation.Transformation
-
matrix_part
¶
-
translation_part
¶
-
-
class
Patro.GeometryEngine.Transformation.
AffineTransformation2D
(obj, transformation_type=<TransformationType.Generic: 9>)[source]¶ Bases:
Patro.GeometryEngine.Transformation.AffineTransformation
-
__dimension__
= 2¶
-
__size__
= 3¶
-
-
exception
Patro.GeometryEngine.Transformation.
IncompatibleArrayDimension
[source]¶ Bases:
ValueError
-
class
Patro.GeometryEngine.Transformation.
Transformation
(obj, transformation_type=<TransformationType.Generic: 9>)[source]¶ Bases:
object
-
__dimension__
= None¶
-
__init__
(obj, transformation_type=<TransformationType.Generic: 9>)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
__size__
= None¶
-
array
¶
-
dimension
¶
-
is_identity
¶
-
size
¶
-
type
¶
-
-
class
Patro.GeometryEngine.Transformation.
Transformation2D
(obj, transformation_type=<TransformationType.Generic: 9>)[source]¶ Bases:
Patro.GeometryEngine.Transformation.Transformation
-
__dimension__
= 2¶
-
__size__
= 2¶
-