def head_pos_to_trans_rot_t(quats):
 t = quats[..., 0].copy()
 rotation = quat_to_rot(quats[..., 1:4])
 translation = quats[..., 4:7].copy()
 return (translation, rotation, t)

def head_pos_to_trans_rot_t ( quats ) : t = quats [ ... , 0 ] . copy ( ) rotation = quat_to_rot ( quats [ ... , 1 : 4 ] ) translation = quats [ ... , 4 : 7 ] . copy ( ) return ( translation , rotation , t )
convert maxfilter-formatted head position quaternions .