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

Method SignedAngleBetweenVectors

Common/Core/vtkMath.cxx:3128–3135  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3126
3127//------------------------------------------------------------------------------
3128double vtkMath::SignedAngleBetweenVectors(
3129 const double v1[3], const double v2[3], const double vn[3])
3130{
3131 double cross[3];
3132 vtkMath::Cross(v1, v2, cross);
3133 double angle = atan2(vtkMath::Norm(cross), vtkMath::Dot(v1, v2));
3134 return vtkMath::Dot(cross, vn) >= 0 ? angle : -angle;
3135}
3136
3137//------------------------------------------------------------------------------
3138double vtkMath::GaussianAmplitude(double variance, double distanceFromMean)

Callers

nothing calls this directly

Calls 3

NormFunction · 0.70
DotFunction · 0.70
CrossFunction · 0.50

Tested by

no test coverage detected