simulariumio/mcell/mcell_converter.py
def _get_euler_angles(normal: np.ndarray, angle: float) -> np.ndarray:
        """
        Get euler angles in degrees representing a rotation defined by the basis
        between the given normal and a perpendicular vector rotated at angle
        """
        perpendicular = McellConverter._get_perpendicular_vector(normal, angle)
        rotation = McellConverter._get_rotation_matrix(normal, perpendicular)
        return Rotation.from_matrix(rotation).as_euler("xyz", degrees=True)

        Get euler angles in degrees representing a rotation defined by the basis
        between the given normal and a perpendicular vector rotated at angle
        
Get euler angles in degrees representing a rotation defined by the basis
between the given normal and a perpendicular vector rotated at angle
Get euler angles in degrees representing a rotation defined by the basis between the given normal and a perpendicular vector rotated at angle
def _get_euler_angles(normal: np.ndarray, angle: float) -> np.ndarray:
        perpendicular = McellConverter._get_perpendicular_vector(normal, angle)
        rotation = McellConverter._get_rotation_matrix(normal, perpendicular)
        return Rotation.from_matrix(rotation).as_euler("xyz", degrees=True)
def _get_euler_angles ( normal : np . ndarray , angle : float ) -> np . ndarray : perpendicular = McellConverter . _get_perpendicular_vector ( normal , angle ) rotation = McellConverter . _get_rotation_matrix ( normal , perpendicular ) return Rotation . from_matrix ( rotation ) . as_euler ( "xyz" , degrees = True )
Get euler angles in degrees representing a rotation defined by the basis
between the given normal and a perpendicular vector rotated at angle
Get euler angles in degrees representing a rotation defined by the basis between the given normal and a perpendicular vector rotated at angle
"""
        Get euler angles in degrees representing a rotation defined by the basis
        between the given normal and a perpendicular vector rotated at angle
        """
normal
np.ndarray
angle
float