MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / VectorLength

Function VectorLength

include/VectorMath.h:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106 template <int Dim, typename T>
107 T VectorLength(const T* const Vector)
108 {
109 VectorRefConst<T, Dim> V(Vector);
110 T SquaredNorm = V.squaredNorm();
111
112 /** for stability of the derivation */
113 if(SquaredNorm < T(1e-10))
114 SquaredNorm += 1e-10;
115
116 return sqrt(SquaredNorm);
117 }
118
119 template <int Dim, typename T1, typename T2>
120 T1 VectorDistance(const T1* const Vector1, const T2* const Vector2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected