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

Function SquaredNorm

Common/Core/vtkMath.h:582–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 */
581 template <typename ReturnTypeT = double, typename TupleRangeT>
582 static ReturnTypeT SquaredNorm(const TupleRangeT& v)
583 {
584 return v[0] * v[0] + v[1] * v[1] + v[2] * v[2];
585 }
586
587 /**
588 * Normalize (in place) a 3-vector. Returns norm of vector.

Callers 3

operator()Method · 0.50
SynchronizeGridExtentsFunction · 0.50
operator()Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected