tiltlib.axis.Axis
- class tiltlib.axis.Axis(direction: Vector3d, min: float, max: float, angle: float = 0, degrees: bool = True, intrinsic: bool = False)[source]
Bases:
objectDataclass for handling axis rotations
- Parameters:
direction (Vector3d) – Direction of tilt axis in the sample reference frame
min (float) – Minimum possible tilt angle
max (float) – Maximum possible tilt angle
angle (0, optional) – Initial tilt angle
degrees (bool, optional) – Whether the given angles are in degrees(True) or radians(False), defaults to True
intrinsic (bool, optional) – Whether the axis rotation is intrinsic(True) or extrinsic(False), defaults to False
- __init__(direction: Vector3d, min: float, max: float, angle: float = 0, degrees: bool = True, intrinsic: bool = False) None
Methods
__init__(direction, min, max[, angle, ...])copy()Attributes
The rotation of the axis as a quaternion
angledegreesextrinsicintrinsicdirectionminmax- property R: Rotation
The rotation of the axis as a quaternion
- Returns:
rotation
- Return type:
Rotation