MCPcopy Create free account
hub / github.com/Kitware/VTK / SquaredNorm

Function SquaredNorm

Common/DataModel/vtkVector.h:53–61  ·  view source on GitHub ↗

@{ * Get the squared norm of the vector. */

Source from the content-addressed store, hash-verified

51 * Get the squared norm of the vector.
52 */
53 T SquaredNorm() const
54 {
55 T result = 0;
56 for (int i = 0; i < Size; ++i)
57 {
58 result += this->Data[i] * this->Data[i];
59 }
60 return result;
61 }
62 ///@}
63
64 /**

Callers 6

operator()Method · 0.70
SimpleTriangulationFunction · 0.70
Distance2ToBoundsMethod · 0.70
Distance2ToBoundsFunction · 0.70
IntersectionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected