dynamics.euler_2_dcm#
- hohmannpy.dynamics.euler_2_dcm(angle, axis)#
Generate a direction cosine matrix (DCM) about the given axis (1, 2, or 3) using the provided Euler angle.
- Parameters:
angle (float) – Angle to rotate by.
axis (int) – Axis to rotate about.
- Returns:
dcm (np.ndarray) – A (3, 3) DCM which rotates about the provided axis by the provided angle.