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

Method Normalize

Common/Core/vtkMath.h:1851–1862  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1849
1850//----------------------------------------------------------------------------
1851inline float vtkMath::Normalize(float v[3])
1852{
1853 float den = vtkMath::Norm(v);
1854 if (den != 0.0)
1855 {
1856 for (int i = 0; i < 3; ++i)
1857 {
1858 v[i] /= den;
1859 }
1860 }
1861 return den;
1862}
1863
1864//----------------------------------------------------------------------------
1865inline double vtkMath::Normalize(double v[3])

Callers 15

RotateAxisMotionMethod · 0.45
PlanetaryMotionMethod · 0.45
MoveMethod · 0.45
UpdateTransformMethod · 0.45
GetInterpolatedDataMethod · 0.45
WriteDataMethod · 0.45
SlidingNormalsOnLineFunction · 0.45
IsConvexMethod · 0.45
CalculateAnglesFunction · 0.45
UpdateTransformMethod · 0.45

Calls 1

NormFunction · 0.70

Tested by 2

TestVectorFunction · 0.36