simulariumio/mcell/mcell_converter.py
def _get_perpendicular_vector(v: np.ndarray, angle: float) -> np.ndarray:
        """
        Get a unit vector perpendicular to the given vector
        rotated by the given angle
        """
        if v[0] == 0 and v[1] == 0:
            if v[2] == 0:
                raise ValueError("Cannot calculate perpendicular vector to zero vector")
            return np.array([0, 1, 0])
        u = McellConverter._normalize(np.array([-v[1], v[0], 0]))
        return McellConverter._rotate(u, v, angle)

        Get a unit vector perpendicular to the given vector
        rotated by the given angle
        
Get a unit vector perpendicular to the given vector
rotated by the given angle
Get a unit vector perpendicular to the given vector rotated by the given angle
def _get_perpendicular_vector(v: np.ndarray, angle: float) -> np.ndarray:
        if v[0] == 0 and v[1] == 0:
            if v[2] == 0:
                raise ValueError("Cannot calculate perpendicular vector to zero vector")
            return np.array([0, 1, 0])
        u = McellConverter._normalize(np.array([-v[1], v[0], 0]))
        return McellConverter._rotate(u, v, angle)
def _get_perpendicular_vector ( v : np . ndarray , angle : float ) -> np . ndarray : if v [ 0 ] == 0 and v [ 1 ] == 0 : if v [ 2 ] == 0 : raise ValueError ( "Cannot calculate perpendicular vector to zero vector" ) return np . array ( [ 0 , 1 , 0 ] ) u = McellConverter . _normalize ( np . array ( [ - v [ 1 ] , v [ 0 ] , 0 ] ) ) return McellConverter . _rotate ( u , v , angle )
Get a unit vector perpendicular to the given vector
rotated by the given angle
Get a unit vector perpendicular to the given vector rotated by the given angle
"""
        Get a unit vector perpendicular to the given vector
        rotated by the given angle
        """
v
np.ndarray
angle
float