MCPcopy Create free account
hub / github.com/TheAlgorithms/C / vector_prod

Function vector_prod

geometry/vectors_3d.c:105–114  ·  view source on GitHub ↗

* Compute the vector product of two 3d vectors. * @f[\begin{align*} * \vec{a}\times\vec{b} &= \begin{vmatrix} * \hat{i} & \hat{j} & \hat{k}\\ * a_x & a_y & a_z\\ * b_x & b_y & b_z * \end{vmatrix}\\ * &= \left(a_yb_z-b_ya_z\right)\hat{i} - \left(a_xb_z-b_xa_z\right)\hat{j} * + \left(a_xb_y-b_xa_y\right)\hat{k} \end{align*} * @f] * @param[in] a first vector @f$\vec{a}@f$ * @param[in]

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected