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

Function ProjectVector

Common/Core/Testing/Cxx/UnitTestMath.cxx:1316–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1314
1315template <typename T>
1316int ProjectVector()
1317{
1318 int status = 0;
1319 T a[3], b[3], c[3];
1320 for (int i = 0; i < 3; ++i)
1321 {
1322 a[i] = 0.0;
1323 b[i] = 0.0;
1324 }
1325 if (vtkMath::ProjectVector(a, b, c))
1326 {
1327 std::cout << "ProjectVector of a 0 vector should return false ";
1328 ++status;
1329 }
1330 return status;
1331}
1332
1333// Validate 0 vector case. TestMath does the rest
1334int TestProjectVector()

Callers 9

TestMathFunction · 0.85
GetTranslationVectorMethod · 0.85
TranslateMethod · 0.85
GramSchmidtFunction · 0.85
ScaleConeAngleMethod · 0.85
GramSchmidtFunction · 0.85
RequestDataMethod · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected