(rot, deg=False)
return rot
Return rot possibly completed with zeroes to reach size 3.
    If rot is None, return a vector of 0.
    If deg is True, convert from degree to radian, otherwise assume input
    is in radian.
Return rot possibly completed with zeroes to reach size 3.
    If rot is None, return a vector of 0.
    If deg is True, convert from degree to radian, otherwise assume input
    is in radian.
Return rot possibly completed with zeroes to reach size 3 . If rot is None return a vector of 0 . If deg is True convert from degree to radian otherwise assume input is in radian .
def normalise_rot(rot, deg=False):
    """Return rot possibly completed with zeroes to reach size 3.
    If rot is None, return a vector of 0.
    If deg is True, convert from degree to radian, otherwise assume input
    is in radian.
    """
    if deg:
        convert = np.pi / 180.0
    else:
        convert = 1.0
    if rot is None:
        rot = np.zeros(3)
    else:
        rot = np.array(rot, np.float64).flatten() * convert
        rot.resize(3, refcheck=False)
    return rot
def normalise_rot ( rot , deg = False ) : if deg : convert = np . pi / 180.0 else : convert = 1.0 if rot is None : rot = np . zeros ( 3 ) else : rot = np . array ( rot , np . float64 ) . flatten ( ) * convert rot . resize ( 3 , refcheck = False ) return rot