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

Function RandomPoint

Common/DataModel/Testing/Cxx/UnitTestTriangleIntersection.cxx:401–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void RandomPoint(vtkRandom* seq, double* p)
402{
403 // Set p to be a random point in the box (-1,1) x (-1,1) x (-1,1).
404 for (int i = 0; i < 3; i++)
405 {
406 seq->Next();
407 p[i] = -1. + 2. * seq->GetValue();
408 }
409}
410
411int TestPositiveResult(vtkRandom* seq, unsigned nTests)
412{

Callers 3

TestPositiveResultFunction · 0.85
TestReciprocalResultFunction · 0.85

Calls 2

NextMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected