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

Method Distance2BetweenPoints

Common/Core/vtkMath.h:1929–1933  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1927
1928//----------------------------------------------------------------------------
1929inline float vtkMath::Distance2BetweenPoints(const float p1[3], const float p2[3])
1930{
1931 return ((p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1]) +
1932 (p1[2] - p2[2]) * (p1[2] - p2[2]));
1933}
1934
1935//----------------------------------------------------------------------------
1936inline double vtkMath::Distance2BetweenPoints(const double p1[3], const double p2[3])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected