Bases: object
Base class for all geometric transformations acting on Numpy arrays
Returns the inverse transformation
Abstract method. Returns transformed coordinates.
Abstract method. Returns transformed vector components for vectors attached to the provided coordinates.
Parameters:
- vectors – a Numpy array of shape (ndata, ndim) containing the
- vector components
- coords – a Numpy array of shape (ndata, ndim) containing the point
- coordinates
Bases: pymses.core.transformations.Transformation
An affine transformation (of the type x -> L(x) + shift)
Inverse of an affine transformation
Apply the affine transformation to coordinates
Apply the affine transformation to vectors
Bases: pymses.core.transformations.Transformation
A generic (matrix-based) linear transformation
Inverse of the linear transformation
Applies a linear transformation to coordinates
Applies a linear transformation to vectors
Bases: pymses.core.transformations.Transformation
Defines the composition of a list of transformations
Inverse of a chained transformation
Applies a chained transformation to coordinates
Applies a chained transformation to vectors
Returns : | the identity as a LinearTransformation object : |
---|
Returns : | an AffineTransformation object corresponding to a translation : of the specified vector : |
---|
Returns the rotation matrix of the rotation with the specified axis vector and angle
Returns the Transformation corresponding to the rotation specified by its axis vector, angle, and rotation center.
If rot_center is not specified, it is assumed to be [0, 0, 0].
Returns the Transformation corresponding to the rotation specified by its Euler angles and the corresponding axis sequence convention.
The rotation is performed by successively rotating the object around its current local axis axis_sequence[i] with an angle angle[i], for i = 0, 1, 2.
See http://en.wikipedia.org/wiki/Euler_angles for details.
Gives a Transformation which brings a given source_vect in alignment with a given dest_vect.
Optionally, a second rotation around dest_vect can be specified by the parameter dest_vect_angle.
Parameters : | source_vect : array
dest_vect : array
dest_vect_angle : float (default 0.0)
|
---|---|
Returns : | rot : Transformation
|
Examples
>>> R = rot3d_align_vectors(array([0.,0.,1.]), array([0.5,0.5,0.5]))