openfold.utils.geometry.rotation_matrix¶
Rot3Array Matrix Class.
Classes
|
Rot3Array Matrix in 3 dimensional Space implemented as struct of arrays. |
- class Rot3Array(xx, xy, xz, yx, yy, yz, zx, zy, zz)¶
Rot3Array Matrix in 3 dimensional Space implemented as struct of arrays.
- Parameters:
- apply_inverse_to_point(point)¶
Applies inverse Rot3Array to point.
- apply_to_point(point)¶
Applies Rot3Array to point.
- classmethod from_array(array)¶
Construct Rot3Array Matrix from array of shape. […, 3, 3].
- classmethod from_quaternion(w, x, y, z, normalize=True, eps=1e-06)¶
Construct Rot3Array from components of quaternion.
- classmethod from_two_vectors(e0, e1)¶
Construct Rot3Array from two Vectors.
Rot3Array is constructed such that in the corresponding frame ‘e0’ lies on the positive x-Axis and ‘e1’ lies in the xy plane with positive sign of y.
- reshape(new_shape)¶