function direction = h3d_scan_tt2dir(tilt, theta) direction = rot_y(tilt) * rot_z(theta) * [1; 0; 0];