| 67 | } |
| 68 | |
| 69 | VECTORCALL VECMATH_FINLINE vec4f v_dir_to_angles(vec3f dir) |
| 70 | { |
| 71 | vec4f z = v_splat_z(dir); |
| 72 | vec4f d = v_length2_x(v_perm_xzxz(dir)); |
| 73 | vec4f y = v_perm_xaxa(z, v_splat_y(dir)); |
| 74 | vec4f x = v_perm_xaxa(dir, d); |
| 75 | vec4f a = v_atan2(y, x); |
| 76 | return v_xor(a, v_cast_vec4f(v_seti_x(0x80000000))); |
| 77 | } |
| 78 | |
| 79 | VECTORCALL VECMATH_FINLINE vec3f v_angles_to_dir(vec4f angles) |
| 80 | { |
nothing calls this directly
no test coverage detected