pyxmolpp2.Rotation class

Rotational transformation

Contents

Methods

def axis(self, /) -> XYZ
Rotational axis
def inverted(self, /) -> Rotation
Inverted rotation
def matrix3d(self, /) -> numpy.ndarray[numpy.float64]
Rotational matrix
def theta(self, /) -> AngleValue
Rotational angle
def transform(self, r: XYZ) -> XYZ
Returns rotated point

Special methods

def __init__(self, /) -> None
Default constructor
def __init__(self, rotation_axis: XYZ, rotation_angle: AngleValue) -> None
Construct from axis and angle
def __init__(self, rotation_matrix: numpy.ndarray[numpy.float64[3, 3]]) -> None
Construct from matrix
def __mul__(self, arg0: Rotation, /) -> Rotation
def __mul__(self, arg0: Translation, /) -> Transformation
def __mul__(self, arg0: UniformScale, /) -> Transformation
def __rmul__(self, arg0: Translation, /) -> Transformation
def __rmul__(self, arg0: UniformScale, /) -> Transformation