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

Function unit_vec

geometry/vectors_3d.c:156–173  ·  view source on GitHub ↗

* Obtain unit vector in the same direction as given vector. * @f[\hat{a}=\frac{\vec{a}}{\lVert\vec{a}\rVert}@f] * @param[in] a input vector * @returns n unit vector in the direction of @f$\vec{a}@f$ */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

vector_normFunction · 0.85

Tested by

no test coverage detected