simulariumio/mcell/mcell_converter.py
def _rotate(v: np.ndarray, axis: np.ndarray, angle: float) -> np.ndarray:
        """
        rotate a vector around axis by angle (radians)
        """
        rotation = linalg.expm(
            np.cross(np.eye(3), McellConverter._normalize(axis) * angle)
        )
        return np.dot(rotation, np.copy(v))

        rotate a vector around axis by angle (radians)
        
rotate a vector around axis by angle (radians)
rotate a vector around axis by angle ( radians )
def _rotate(v: np.ndarray, axis: np.ndarray, angle: float) -> np.ndarray:
        rotation = linalg.expm(
            np.cross(np.eye(3), McellConverter._normalize(axis) * angle)
        )
        return np.dot(rotation, np.copy(v))
def _rotate ( v : np . ndarray , axis : np . ndarray , angle : float ) -> np . ndarray : rotation = linalg . expm ( np . cross ( np . eye ( 3 ) , McellConverter . _normalize ( axis ) * angle ) ) return np . dot ( rotation , np . copy ( v ) )
rotate a vector around axis by angle (radians)
rotate a vector around axis by angle ( radians )
"""
        rotate a vector around axis by angle (radians)
        """
v
np.ndarray
axis
np.ndarray
angle
float