| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected