Package Scientific :: Package Geometry :: Module Transformation :: Class Translation
[frames] | no frames]

Class Translation

     Transformation --+    
                      |    
RigidBodyTransformation --+
                          |
                         Translation

Translational transformation

Instance Methods
Scientific.Geometry.Vector
__call__(self, vector)
Returns: the transformed vector
 
__init__(self, vector)
 
__mul__(self, other)
 
asLinearTransformation(self)
 
displacement(self)
Returns: the displacement vector
Transformation
inverse(self)
Returns: the inverse transformation
Rotation
rotation(self)
Returns: the rotational component
 
screwMotion(self)
Returns: the four parameters (reference, direction, angle, distance) of a screw-like motion that is equivalent to the transformation.
Translation
translation(self)
Returns: the translational component.
Class Variables
  is_translation = 1
Method Details

__call__(self, vector)
(Call operator)

 
Parameters:
  • vector - the input vector
Returns: Scientific.Geometry.Vector
the transformed vector
Overrides: Transformation.__call__
(inherited documentation)

__init__(self, vector)
(Constructor)

 
Parameters:

displacement(self)

 
Returns:
the displacement vector

inverse(self)

 
Returns: Transformation
the inverse transformation
Overrides: Transformation.inverse
(inherited documentation)

rotation(self)

 
Returns: Rotation
the rotational component
Overrides: RigidBodyTransformation.rotation
(inherited documentation)

screwMotion(self)

 
Returns:
the four parameters (reference, direction, angle, distance) of a screw-like motion that is equivalent to the transformation. The screw motion consists of a displacement of distance (a float) along direction (a normalized Scientific.Geometry.Vector) plus a rotation of angle radians around an axis pointing along direction and passing through the point reference (a Scientific.Geometry.Vector).
Overrides: RigidBodyTransformation.screwMotion
(inherited documentation)

translation(self)

 
Returns: Translation
the translational component. In the case of a mixed rotation/translation, this translation is executed after the rotation.
Overrides: RigidBodyTransformation.translation
(inherited documentation)