MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / v_cross3

Function v_cross3

include/vecmath/dag_vecMath_common.h:282–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282VECTORCALL VECMATH_FINLINE vec3f v_cross3(vec3f a, vec3f b)
283{
284 // a.y * b.z - a.z * b.y
285 // a.z * b.x - a.x * b.z
286 // a.x * b.y - a.y * b.x
287 vec3f tmp0 = v_perm_yzxw(a);
288 vec3f tmp1 = v_perm_zxyw(b);
289 vec3f tmp2 = v_mul(tmp0, b);
290 vec3f tmp3 = v_mul(tmp0, tmp1);
291 vec3f tmp4 = v_perm_yzxw(tmp2);
292 return v_sub(tmp3, tmp4);
293}
294
295VECTORCALL VECMATH_FINLINE void v_mat44_make_persp_forward(mat44f &dest, float wk, float hk, float zn, float zf)
296{

Callers 15

cross3Function · 0.85
v_striple3Function · 0.85
v_mat33_make_from_lookFunction · 0.85
v_mat44_make_look_atFunction · 0.85
v_mat33_orthonormalizeFunction · 0.85
v_mat44_orthonormalize33Function · 0.85
v_mat33_detFunction · 0.85
v_mat44_det43Function · 0.85
v_quat_mul_vec3Function · 0.85
v_quat_from_unit_arcFunction · 0.85
v_quat_from_arcFunction · 0.85

Calls 4

v_perm_yzxwFunction · 0.70
v_perm_zxywFunction · 0.70
v_mulFunction · 0.70
v_subFunction · 0.70

Tested by

no test coverage detected